aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-24 21:36:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-24 21:36:29 -0700
commitd307f8f7e0556c0a7f4544618a081eb9a80c5845 (patch)
treeacc90e59743614e20d756dcb16d7c0dafee7bf20 /modern/src/common/components
parent8956f2a0ad4b1a9cc126013c316da4706eaae0b8 (diff)
downloadtrackermap-web-d307f8f7e0556c0a7f4544618a081eb9a80c5845.tar.gz
trackermap-web-d307f8f7e0556c0a7f4544618a081eb9a80c5845.tar.bz2
trackermap-web-d307f8f7e0556c0a7f4544618a081eb9a80c5845.zip
Clean up page toolbar
Diffstat (limited to 'modern/src/common/components')
-rw-r--r--modern/src/common/components/PageLayout.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/modern/src/common/components/PageLayout.js b/modern/src/common/components/PageLayout.js
index 11459557..e81c9754 100644
--- a/modern/src/common/components/PageLayout.js
+++ b/modern/src/common/components/PageLayout.js
@@ -32,7 +32,6 @@ const useStyles = makeStyles((theme) => ({
mobileDrawer: {
width: theme.dimensions.drawerWidthTablet,
},
- desktopToolbar: theme.mixins.toolbar,
mobileToolbar: {
zIndex: 1,
},
@@ -82,14 +81,12 @@ const PageLayout = ({ menu, breadcrumbs, children }) => {
className={classes.desktopDrawer}
classes={{ paper: classes.desktopDrawer }}
>
- <div className={classes.toolbar}>
- <Toolbar>
- <IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => navigate('/')}>
- <ArrowBackIcon />
- </IconButton>
- <PageTitle breadcrumbs={breadcrumbs} />
- </Toolbar>
- </div>
+ <Toolbar>
+ <IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => navigate('/')}>
+ <ArrowBackIcon />
+ </IconButton>
+ <PageTitle breadcrumbs={breadcrumbs} />
+ </Toolbar>
<Divider />
{menu}
</Drawer>