aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-03 15:50:53 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-03 15:50:53 -0700
commit5d17af8102f17d41610acb9ff34aabbff871cda1 (patch)
tree3127ce12e0f27a9d155ad0591f958af99add826a /modern
parentaed55c77c58d74879dd9acedbab8965233d47aa3 (diff)
downloadtrackermap-web-5d17af8102f17d41610acb9ff34aabbff871cda1.tar.gz
trackermap-web-5d17af8102f17d41610acb9ff34aabbff871cda1.tar.bz2
trackermap-web-5d17af8102f17d41610acb9ff34aabbff871cda1.zip
Fix geofences toolbar
Diffstat (limited to 'modern')
-rw-r--r--modern/src/other/GeofencesPage.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/modern/src/other/GeofencesPage.js b/modern/src/other/GeofencesPage.js
index fce15a39..21df8f34 100644
--- a/modern/src/other/GeofencesPage.js
+++ b/modern/src/other/GeofencesPage.js
@@ -1,6 +1,6 @@
import React from 'react';
import {
- Divider, Typography, IconButton, useMediaQuery,
+ Divider, Typography, IconButton, useMediaQuery, Toolbar,
} from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
import { useTheme } from '@mui/material/styles';
@@ -38,12 +38,6 @@ const useStyles = makeStyles((theme) => ({
height: dimensions.drawerHeightPhone,
},
},
- drawerHeader: {
- ...theme.mixins.toolbar,
- display: 'flex',
- alignItems: 'center',
- padding: theme.spacing(0, 1),
- },
mapContainer: {
flexGrow: 1,
},
@@ -65,14 +59,12 @@ const GeofencesPage = () => {
variant="permanent"
classes={{ paper: classes.drawerPaper }}
>
- <div className={classes.drawerHeader}>
- <IconButton onClick={() => navigate(-1)}>
+ <Toolbar>
+ <IconButton edge="start" sx={{ mr: 2 }} onClick={() => navigate(-1)}>
<ArrowBackIcon />
</IconButton>
- <Typography variant="h6" color="inherit" noWrap>
- {t('sharedGeofences')}
- </Typography>
- </div>
+ <Typography variant="h6">{t('sharedGeofences')}</Typography>
+ </Toolbar>
<Divider />
<GeofencesList />
</Drawer>