Task/improve hardcoded styles and types (#107)

* Add working notifications with only twitter for now

* feat(notification-bar): I didnt copy from NP

* feat(notifications): Collapse when no more notifications after closing one

* Improve overall messages styling code

* Improve Routing performance

* improve use keyboard hook

* Remove unused returns

* Button hover color :)

* Button hover color :) x2

* Added hover style to containedPrimary msg btn

* Replace custom components for custom theme providers for Messages and Contacts apps

* Improve createAppThemeProvider

* Improve createAppThemeProvider

* Final housekeeping for messages styles

* Change placeholder to label in Contacts app text fields

* Fix alerts style with navigation and fix calc copy alerrt

* Split Phone code for snackbar

* Add more options and style Context Menu

* Enable Sellout theme provider and make it work with light themes
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-02-21 12:41:25 -05:00
1 parent 75e23b783c
commit 4acb214ec9
56 files changed
+738 -578

No files matched your search

@@ -1,7 +0,0 @@
#sellout-app .Mui-selected {
color: #f44336 !important;
}
#sellout-app .Mui-focused::after {
border-bottom: #f44336 solid 3px;
}
@@ -5,10 +5,26 @@ import { SelloutTitle } from './SelloutTitle';
import { SelloutListContainer } from './SelloutList/SelloutListContainer';
import { NavigationBar } from './navigation/NavigationBar';
import { Switch, Route } from 'react-router-dom';
import './Sellout.css';
import { ListingFormContainer } from './form/ListingFormContainer';
import InjectDebugData from '../../../os/debug/InjectDebugData';
import { SelloutThemeProvider } from '../providers/SelloutThemeProvider';
export const SelloutApp = () => {
return (
<SelloutThemeProvider>
<AppWrapper id='sellout-app'>
<SelloutTitle />
<AppContent>
<Switch>
<Route path='/sellout' exact component={SelloutListContainer} />
<Route path='/sellout/new' component={ListingFormContainer} />
</Switch>
</AppContent>
<NavigationBar />
</AppWrapper>
</SelloutThemeProvider>
);
};
InjectDebugData([
{
@@ -34,18 +50,3 @@ InjectDebugData([
],
},
]);
export const SelloutApp = () => {
return (
<AppWrapper id='sellout-app'>
<SelloutTitle />
<AppContent>
<Switch>
<Route path='/sellout' exact component={SelloutListContainer} />
<Route path='/sellout/new' component={ListingFormContainer} />
</Switch>
</AppContent>
<NavigationBar />
</AppWrapper>
);
};
@@ -27,9 +27,12 @@ const useStyles = makeStyles((theme) => ({
flexFlow: 'column',
alignItems: 'flex',
height: 'auto',
background: '#232323',
background: theme.palette.background.default,
marginBottom: 20,
},
icon: {
color: theme.palette.primary.main
},
header: {
margin: 10,
},
@@ -79,10 +82,10 @@ export const SelloutItem = (listing) => {
</Typography>
<div>
<Button>
<ChatIcon style={{ color: '#f44336' }} />
<ChatIcon className={classes.icon} />
</Button>
<Button>
<PhoneIcon style={{ color: '#f44336' }} />
<PhoneIcon className={classes.icon} />
</Button>
</div>
</Paper>
@@ -12,10 +12,10 @@ const useStyles = makeStyles((theme) => ({
flexFlow: 'row nowrap',
justifyContent: 'center',
alignItems: 'center',
background: '#262525',
background: theme.palette.background.default,
},
icon: {
color: '#f44336',
color: theme.palette.primary.main,
fontSize: 40,
},
}));
@@ -2,8 +2,6 @@ import React, { useState } from 'react';
import { makeStyles, Button, TextField } from '@material-ui/core';
import Nui from '../../../../os/nui-events/utils/Nui';
import '../Sellout.css';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
@@ -22,7 +20,7 @@ const useStyles = makeStyles((theme) => ({
postButton: {
display: 'block',
margin: 'auto',
background: '#f44336',
background: theme.palette.primary.main,
width: '80%',
fontSize: 20,
},
@@ -9,10 +9,10 @@ import AddCircleIcon from '@material-ui/icons/AddCircle';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
backgroundColor: '#262525',
backgroundColor: theme.palette.background.default,
},
icon: {
color: '#f44336',
color: theme.palette.primary.main,
},
}));