Skip to content

Commit 37d2da6

Browse files
fix issues #2
1 parent 3f0a750 commit 37d2da6

File tree

14 files changed

+1261
-1118
lines changed

14 files changed

+1261
-1118
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "flatlogic-material",
33
"version": "1.0.0",
44
"dependencies": {
5-
"@material-ui/core": "^3.9.2",
5+
"@material-ui/core": "3.9.2",
66
"@material-ui/icons": "^3.0.2",
77
"apexcharts": "^3.6.3",
88
"classnames": "^2.2.6",

src/components/App.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import Layout from './Layout';
77
import Error from '../pages/error';
88
import Login from '../pages/login';
99

10-
const theme = createMuiTheme({...themes.default, ...overrides});
10+
const theme = createMuiTheme({
11+
...themes.default,
12+
...overrides,
13+
typography: {
14+
useNextVariants: true,
15+
},});
1116

1217
const PrivateRoute = ({ component, ...rest }) => {
1318
return (
@@ -16,7 +21,7 @@ const PrivateRoute = ({ component, ...rest }) => {
1621
localStorage.getItem('id_token') ? (
1722
React.createElement(component, props)
1823
) : (
19-
<Redirect
24+
<Redirect
2025
to={{
2126
pathname: '/login',
2227
state: { from: props.location },

src/components/Header/HeaderView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const Header = ({ classes, isSidebarOpened, toggleSidebar, ...props }) => (
137137
badgeContent={
138138
props.isNotificationsUnread ? notifications.length : null
139139
}
140-
color="warning"
140+
colortheme="warning"
141141
>
142142
<NotificationsIcon classes={{ root: classes.headerIcon }} />
143143
</Badge>

src/components/Sidebar/SidebarView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const structure = [
4343
{ id: 9, label: 'FAQ', link: '', icon: <FAQIcon />},
4444
{ id: 10, type: 'divider' },
4545
{ id: 11, type: 'title', label: 'PROJECTS' },
46-
{ id: 12, label: 'My recent', link: '', icon: <Dot size="large" color="warning" /> },
46+
{ id: 12, label: 'My recent', link: '', icon: <Dot size="large" color="secondary" /> },
4747
{ id: 13, label: 'Starred', link: '', icon: <Dot size="large" color="primary" /> },
4848
{ id: 14, label: 'Background', link: '', icon: <Dot size="large" color="secondary" /> },
4949
];

src/components/Widget/WidgetView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Widget = ({
2727
props.header
2828
) : (
2929
<React.Fragment>
30-
<Typography variant="headline" color="textSecondary">
30+
<Typography variant="h5" color="textSecondary">
3131
{title}
3232
</Typography>
3333
{!disableWidgetMenu && (

src/components/Wrappers/Wrappers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const createStyled = (styles, options) => {
6868
const BadgeExtended = ({ classes, theme, children, colorBrightness, ...props }) => {
6969
const Styled = createStyled({
7070
badge: {
71-
backgroundColor: getColor(props.color, theme, colorBrightness)
71+
backgroundColor: getColor(props.colortheme, theme, colorBrightness)
7272
}
7373
});
7474

@@ -102,7 +102,7 @@ export const Badge = withStyles(
102102
const TypographyExtended = ({ theme, children, weight, size, colorBrightness, ...props }) => (
103103
<TypographyBase
104104
style={{
105-
color: getColor(props.color, theme, colorBrightness),
105+
color: getColor(props.colortheme, theme, colorBrightness),
106106
fontWeight: getFontWeight(weight),
107107
fontSize: getFontSize(size, props.variant, theme)
108108
}}
@@ -117,11 +117,11 @@ export const Typography = withTheme()(TypographyExtended);
117117
const ButtonExtended = ({ theme, children, ...props }) => {
118118
const Styled = createStyled({
119119
button: {
120-
backgroundColor: getColor(props.color, theme),
120+
backgroundColor: getColor(props.colortheme, theme),
121121
boxShadow: theme.customShadows.widget,
122122
color: 'white',
123123
'&:hover': {
124-
backgroundColor: getColor(props.color, theme, 'light'),
124+
backgroundColor: getColor(props.colortheme, theme, 'light'),
125125
boxShadow: theme.customShadows.widgetWide,
126126
}
127127
}

src/pages/dashboard/Dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const Dashboard = ({ classes, theme, ...props }) => {
314314
bodyClass={classes.mainChartBody}
315315
header={
316316
<div className={classes.mainChartHeader}>
317-
<Typography variant="headline" color="textSecondary">
317+
<Typography variant="h5" color="textSecondary">
318318
Daily Line Chart
319319
</Typography>
320320
<div className={classes.mainChartHeaderLabels}>

src/pages/dashboard/components/BigStat/BigStat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BigStat extends PureComponent {
6161
<Typography size="xxl" color="textSecondary">
6262
{total[value]}
6363
</Typography>
64-
<Typography color={total.percent.profit ? "success" : "secondary"}>
64+
<Typography color={total.percent.profit ? "primary" : "secondary"}>
6565
&nbsp;{total.percent.profit ? "+" : "-"}
6666
{total.percent.value}%
6767
</Typography>

src/pages/dashboard/components/Table/Table.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const TableComponent = ({ data }) => {
2121
<Table className="mb-0">
2222
<TableHead>
2323
<TableRow>
24-
{keys.map(key => (
25-
<TableCell>{key}</TableCell>
24+
{keys.map((key, i) => (
25+
<TableCell key={i}>{key}</TableCell>
2626
))}
2727
</TableRow>
2828
</TableHead>
@@ -37,7 +37,7 @@ const TableComponent = ({ data }) => {
3737
<TableCell>{city}</TableCell>
3838
<TableCell>
3939
<Button
40-
color={states[status.toLowerCase()]}
40+
colortheme={states[status.toLowerCase()]}
4141
size="small"
4242
className="px-2"
4343
variant="contained"

src/pages/notifications/NotificationsContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const positions = [
1717

1818
export default compose(
1919
withStyles(theme => ({
20-
progress: {
20+
/*progress: {
2121
visibility: "hidden"
2222
},
2323
notification: {
@@ -29,7 +29,7 @@ export default compose(
2929
},
3030
notificationComponent: {
3131
paddingRight: theme.spacing.unit * 4
32-
}
32+
}*/
3333
})),
3434
withState("notificationsPosition", "setNotificationPosition", 2),
3535
withState("errorToastId", "setErrorToastId", null),

0 commit comments

Comments
 (0)