diff options
Diffstat (limited to 'modern/src/components/reports')
-rw-r--r-- | modern/src/components/reports/ReportNavbar.js | 6 | ||||
-rw-r--r-- | modern/src/components/reports/ReportSidebar.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/components/reports/ReportNavbar.js b/modern/src/components/reports/ReportNavbar.js index 3167c75..ac01fad 100644 --- a/modern/src/components/reports/ReportNavbar.js +++ b/modern/src/components/reports/ReportNavbar.js @@ -3,7 +3,7 @@ import { AppBar, Toolbar, Typography, IconButton } from '@material-ui/core'; import MenuIcon from '@material-ui/icons/Menu'; import t from '../../common/localization'; -const ReportNavbar = ({ openDrawer, setOpenDrawer, reportTitle }) => { +const ReportNavbar = ({ setOpenDrawer, reportTitle }) => { return ( <AppBar position="fixed" color="inherit"> @@ -12,11 +12,11 @@ const ReportNavbar = ({ openDrawer, setOpenDrawer, reportTitle }) => { color="inherit" aria-label="open drawer" edge="start" - onClick={() => setOpenDrawer(!openDrawer)}> + onClick={() => setOpenDrawer(true)}> <MenuIcon /> </IconButton> <Typography variant="h6" noWrap> - {t('reportTitle')} {reportTitle ? `/ ${reportTitle}` : ''} + {t('reportTitle')} {` / ${reportTitle}`} </Typography> </Toolbar> </AppBar> diff --git a/modern/src/components/reports/ReportSidebar.js b/modern/src/components/reports/ReportSidebar.js index 2d4c47c..90e20c0 100644 --- a/modern/src/components/reports/ReportSidebar.js +++ b/modern/src/components/reports/ReportSidebar.js @@ -2,7 +2,7 @@ import React from 'react'; import { List, ListItem, ListItemText, ListItemIcon } from '@material-ui/core'; import { Link, useLocation } from 'react-router-dom'; -const ReportNavbar = ({ routes }) => { +const ReportSidebar = ({ routes }) => { const location = useLocation(); @@ -26,4 +26,4 @@ const ReportNavbar = ({ routes }) => { ) } -export default ReportNavbar; +export default ReportSidebar; |