From b897b8027613ca1fc65d87c70a55860cfd339583 Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Fri, 11 Jun 2021 11:51:26 +0530 Subject: Fixing issues in report implementations --- modern/src/components/reports/ReportNavbar.js | 6 +++--- modern/src/components/reports/ReportSidebar.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'modern/src/components') diff --git a/modern/src/components/reports/ReportNavbar.js b/modern/src/components/reports/ReportNavbar.js index 3167c758..ac01fad9 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 ( @@ -12,11 +12,11 @@ const ReportNavbar = ({ openDrawer, setOpenDrawer, reportTitle }) => { color="inherit" aria-label="open drawer" edge="start" - onClick={() => setOpenDrawer(!openDrawer)}> + onClick={() => setOpenDrawer(true)}> - {t('reportTitle')} {reportTitle ? `/ ${reportTitle}` : ''} + {t('reportTitle')} {` / ${reportTitle}`} diff --git a/modern/src/components/reports/ReportSidebar.js b/modern/src/components/reports/ReportSidebar.js index 2d4c47c1..90e20c05 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; -- cgit v1.2.3