diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-25 23:50:06 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-25 23:50:06 -0700 |
commit | 94e7e64ec481cd004546f02869c1c0dd2904a406 (patch) | |
tree | 425924f753893fcb2231d860bcf5653f1addf28f /modern/src/MainToolbar.js | |
parent | 1fc11fb0cc8bade149fa1724aa1fc33d95b772ce (diff) | |
download | trackermap-web-94e7e64ec481cd004546f02869c1c0dd2904a406.tar.gz trackermap-web-94e7e64ec481cd004546f02869c1c0dd2904a406.tar.bz2 trackermap-web-94e7e64ec481cd004546f02869c1c0dd2904a406.zip |
Add menu options
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r-- | modern/src/MainToolbar.js | 64 |
1 files changed, 60 insertions, 4 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js index 41382b0b..fc3281cd 100644 --- a/modern/src/MainToolbar.js +++ b/modern/src/MainToolbar.js @@ -9,6 +9,7 @@ import IconButton from '@material-ui/core/IconButton'; import MenuIcon from '@material-ui/icons/Menu'; import Drawer from '@material-ui/core/Drawer'; import List from '@material-ui/core/List'; +import ListSubheader from '@material-ui/core/ListSubheader'; import Divider from '@material-ui/core/Divider'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; @@ -92,26 +93,81 @@ class MainToobar extends Component { onClick={this.closeDrawer} onKeyDown={this.closeDrawer}> <List> - <ListItem button> + <ListItem button onClick={() => this.props.history.push('/')}> <ListItemIcon> <DashboardIcon /> </ListItemIcon> <ListItemText primary={t('mapTitle')} /> </ListItem> + </List> + <Divider /> + <List + subheader={ + <ListSubheader> + {t('reportTitle')} + </ListSubheader> + }> + <ListItem button onClick={() => this.props.history.push('/reports/route')}> + <ListItemIcon> + <BarChartIcon /> + </ListItemIcon> + <ListItemText primary={t('reportRoute')} /> + </ListItem> <ListItem button disabled> <ListItemIcon> <BarChartIcon /> </ListItemIcon> - <ListItemText primary={t('reportTitle')} /> + <ListItemText primary={t('reportEvents')} /> + </ListItem> + <ListItem button disabled> + <ListItemIcon> + <BarChartIcon /> + </ListItemIcon> + <ListItemText primary={t('reportTrips')} /> + </ListItem> + <ListItem button disabled> + <ListItemIcon> + <BarChartIcon /> + </ListItemIcon> + <ListItemText primary={t('reportStops')} /> + </ListItem> + <ListItem button disabled> + <ListItemIcon> + <BarChartIcon /> + </ListItemIcon> + <ListItemText primary={t('reportSummary')} /> + </ListItem> + <ListItem button disabled> + <ListItemIcon> + <BarChartIcon /> + </ListItemIcon> + <ListItemText primary={t('reportChart')} /> </ListItem> </List> <Divider /> - <List> + <List + subheader={ + <ListSubheader> + {t('settingsTitle')} + </ListSubheader> + }> + <ListItem button disabled> + <ListItemIcon> + <SettingsIcon /> + </ListItemIcon> + <ListItemText primary={t('settingsUser')} /> + </ListItem> + <ListItem button disabled> + <ListItemIcon> + <SettingsIcon /> + </ListItemIcon> + <ListItemText primary={t('settingsServer')} /> + </ListItem> <ListItem button disabled> <ListItemIcon> <SettingsIcon /> </ListItemIcon> - <ListItemText primary={t('settingsTitle')} /> + <ListItemText primary={t('sharedNotifications')} /> </ListItem> </List> </div> |