aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/reports
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-06-11 11:51:26 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-06-11 11:51:26 +0530
commitb897b8027613ca1fc65d87c70a55860cfd339583 (patch)
tree58377c71c5633bcdb2e9b158384b0c63f181f9e3 /modern/src/components/reports
parent8e1bddcc608ba4e52699c30084f5ef950bd7e329 (diff)
downloadtrackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.tar.gz
trackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.tar.bz2
trackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.zip
Fixing issues in report implementations
Diffstat (limited to 'modern/src/components/reports')
-rw-r--r--modern/src/components/reports/ReportNavbar.js6
-rw-r--r--modern/src/components/reports/ReportSidebar.js4
2 files changed, 5 insertions, 5 deletions
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 (
<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 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;