From 589244b4a65813271440d11c09fa63dfb4d8ad78 Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Mon, 17 May 2021 13:09:25 +0530 Subject: Sidebar and Report Filter completed --- modern/src/reports/ReportLayoutPage.js | 61 +++++++++++++++++----------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'modern/src/reports/ReportLayoutPage.js') diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js index ae7b3daf..e203b5af 100644 --- a/modern/src/reports/ReportLayoutPage.js +++ b/modern/src/reports/ReportLayoutPage.js @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { AppBar, Toolbar, Typography, List, ListItem, ListItemText, ListItemIcon, Divider, Grid, Paper, Drawer, makeStyles, useMediaQuery, IconButton } from '@material-ui/core'; +import { AppBar, Toolbar, Typography, List, ListItem, ListItemText, ListItemIcon, Divider, Drawer, makeStyles, useMediaQuery, IconButton } from '@material-ui/core'; import { useTheme } from "@material-ui/core/styles"; import MenuIcon from '@material-ui/icons/Menu'; import TimelineIcon from '@material-ui/icons/Timeline'; @@ -16,24 +16,24 @@ import t from '../common/localization'; const useStyles = makeStyles(theme => ({ root: { - height: '100%', display: 'flex', + height: '100%', }, - drawer: { - width: 360, + drawerContainer: { + width: theme.dimensions.drawerWidth, [theme.breakpoints.down("md")]: { width: 0, } - }, - content: { - flex: 1, - padding: theme.spacing(3), }, - drawerPaper: { - width: 360, + drawer: { + width: theme.dimensions.drawerWidth, [theme.breakpoints.down("md")]: { - width: 320, + width: theme.dimensions.tabletDrawerWidth, } + }, + content: { + flex: 1, + padding: theme.spacing(5, 3, 3, 3), }, drawerHeader: { ...theme.mixins.toolbar, @@ -41,14 +41,16 @@ const useStyles = makeStyles(theme => ({ alignItems: 'center', padding: theme.spacing(0, 1), }, + backArrowIconContainer: { + '&:hover': { + backgroundColor:"transparent" + } + }, toolbar: { [theme.breakpoints.down("md")]: { ...theme.mixins.toolbar, } }, - form: { - padding: theme.spacing(1, 2, 2), - }, })); const ReportLayoutPage = ({ children, filter }) => { @@ -73,8 +75,7 @@ const ReportLayoutPage = ({ children, filter }) => { handleListItemClick(route)} - > + onClick={() => handleListItemClick(route)}> {route.icon} @@ -87,11 +88,13 @@ const ReportLayoutPage = ({ children, filter }) => { const drawerHeader = ( <>
- + - - Reports + + {t('reportTitle')}
@@ -99,19 +102,18 @@ const ReportLayoutPage = ({ children, filter }) => { ); const appBar = ( - + setOpenDrawer(!openDrawer)} - className={classes.menuButton} - > + className={classes.menuButton}> - Reports + {t('reportTitle')} @@ -123,18 +125,17 @@ const ReportLayoutPage = ({ children, filter }) => { return (
- { matchesMD && appBar } - +
{filter} -- cgit v1.2.3