From 529e51405db4a086a8eae8e63602f46c3e67fab4 Mon Sep 17 00:00:00 2001 From: Desmond Kyeremeh Date: Fri, 2 Jul 2021 15:53:52 +0000 Subject: Minor fixes --- modern/src/MainToolbar.js | 89 +----------------------------- modern/src/settings/OptionsLayout/index.js | 5 +- 2 files changed, 7 insertions(+), 87 deletions(-) (limited to 'modern/src') diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js index c11ca96b..311f024d 100644 --- a/modern/src/MainToolbar.js +++ b/modern/src/MainToolbar.js @@ -17,18 +17,11 @@ import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import MapIcon from '@material-ui/icons/Map'; -import BarChartIcon from '@material-ui/icons/BarChart'; -import PeopleIcon from '@material-ui/icons/People'; -import StorageIcon from '@material-ui/icons/Storage'; import PersonIcon from '@material-ui/icons/Person'; -import NotificationsIcon from '@material-ui/icons/Notifications'; import DescriptionIcon from '@material-ui/icons/Description'; -import FolderIcon from '@material-ui/icons/Folder'; -import CreateIcon from '@material-ui/icons/Create'; import ReplayIcon from '@material-ui/icons/Replay'; -import BuildIcon from '@material-ui/icons/Build'; import t from './common/localization'; -import * as selectors from './selectors' +import * as selectors from './selectors'; const useStyles = makeStyles(theme => ({ flex: { @@ -115,93 +108,17 @@ const MainToolbar = () => { - - - {t('settingsTitle')}}> history.push(`/user/${userId}`)} + onClick={() => history.push(`/settings/notifications`)} > - - - history.push('/geofences')}> - - - - - - history.push('/settings/notifications')} - > - - - - - - history.push('/settings/groups')}> - - - - - - history.push('/settings/drivers')}> - - - - - - history.push('/settings/attributes')} - > - - - - - - history.push('/settings/maintenances')} - > - - - - + - {adminEnabled && ( - <> - - {t('userAdmin')}}> - history.push('/admin/server')}> - - - - - - history.push('/admin/users')}> - - - - - - history.push('/admin/statistics')} - > - - - - - - - - )} diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js index 4bcb380e..37b63551 100644 --- a/modern/src/settings/OptionsLayout/index.js +++ b/modern/src/settings/OptionsLayout/index.js @@ -32,7 +32,10 @@ const useStyles = makeStyles(theme => ({ }, content: { flex: 1, - padding: theme.spacing(5, 3, 3, 3) + padding: theme.spacing(5, 3, 3, 3), + [theme.breakpoints.down('md')]:{ + paddingTop: theme.spacing(10) + } }, drawerHeader: { ...theme.mixins.toolbar, -- cgit v1.2.3