aboutsummaryrefslogtreecommitdiff
path: root/modern/src/GeofencesPage.js
diff options
context:
space:
mode:
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>