aboutsummaryrefslogtreecommitdiff
path: root/modern/src/GeofencesPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-29 15:21:41 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-29 15:21:41 -0700
commit83da550a8d080bf553486c16247d5815de0b212d (patch)
treef48d4826a6a0403857c455b0ec5f4406ecfe16ca /modern/src/GeofencesPage.js
parentd25a09148e4aa1d1a8dd881d77349aca0a964bfc (diff)
downloadetbsa-traccar-web-83da550a8d080bf553486c16247d5815de0b212d.tar.gz
etbsa-traccar-web-83da550a8d080bf553486c16247d5815de0b212d.tar.bz2
etbsa-traccar-web-83da550a8d080bf553486c16247d5815de0b212d.zip
Fix settings navigation (fix #897)
Diffstat (limited to 'modern/src/GeofencesPage.js')
-rw-r--r--modern/src/GeofencesPage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/GeofencesPage.js b/modern/src/GeofencesPage.js
index 71219c1..31a99fa 100644
--- a/modern/src/GeofencesPage.js
+++ b/modern/src/GeofencesPage.js
@@ -11,6 +11,7 @@ import GeofenceEditMap from './map/GeofenceEditMap';
import GeofencesList from './GeofencesList';
import t from './common/localization';
+import { useHistory } from 'react-router-dom';
const useStyles = makeStyles((theme) => ({
root: {
@@ -49,6 +50,7 @@ const useStyles = makeStyles((theme) => ({
const GeofencesPage = ({ width }) => {
const classes = useStyles();
+ const history = useHistory();
return (
<div className={classes.root}>
@@ -59,7 +61,7 @@ const GeofencesPage = ({ width }) => {
classes={{ paper: classes.drawerPaper }}
>
<div className={classes.drawerHeader}>
- <IconButton component="a" href="/">
+ <IconButton onClick={() => history.goBack()}>
<ArrowBackIcon />
</IconButton>
<Typography variant="h6" color="inherit" noWrap>