aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/package.json1
-rw-r--r--modern/src/other/EventPage.js9
-rw-r--r--modern/src/other/GeofencesPage.js11
3 files changed, 7 insertions, 14 deletions
diff --git a/modern/package.json b/modern/package.json
index d74a3425..b1422f44 100644
--- a/modern/package.json
+++ b/modern/package.json
@@ -17,7 +17,6 @@
"material-ui-dropzone": "^3.5.0",
"moment": "^2.29.3",
"react": "^17.0.2",
- "react-container-dimensions": "^1.4.1",
"react-dom": "^17.0.2",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js
index 8174de5a..c688e62a 100644
--- a/modern/src/other/EventPage.js
+++ b/modern/src/other/EventPage.js
@@ -5,7 +5,6 @@ import {
} from '@material-ui/core';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import { useHistory, useParams } from 'react-router-dom';
-import ContainerDimensions from 'react-container-dimensions';
import { useEffectAsync } from '../reactHelper';
import { useTranslation } from '../common/components/LocalizationProvider';
import Map from '../map/core/Map';
@@ -68,11 +67,9 @@ const EventPage = () => {
</Toolbar>
</AppBar>
<div className={classes.mapContainer}>
- <ContainerDimensions>
- <Map>
- {position && <MapPositions positions={[position]} />}
- </Map>
- </ContainerDimensions>
+ <Map>
+ {position && <MapPositions positions={[position]} />}
+ </Map>
</div>
</div>
);
diff --git a/modern/src/other/GeofencesPage.js b/modern/src/other/GeofencesPage.js
index 1e866de6..98833cc7 100644
--- a/modern/src/other/GeofencesPage.js
+++ b/modern/src/other/GeofencesPage.js
@@ -4,7 +4,6 @@ import {
} from '@material-ui/core';
import { useTheme } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
-import ContainerDimensions from 'react-container-dimensions';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import { useHistory } from 'react-router-dom';
import Map from '../map/core/Map';
@@ -77,12 +76,10 @@ const GeofencesPage = () => {
<GeofencesList />
</Drawer>
<div className={classes.mapContainer}>
- <ContainerDimensions>
- <Map>
- <MapCurrentLocation />
- <MapGeofenceEdit />
- </Map>
- </ContainerDimensions>
+ <Map>
+ <MapCurrentLocation />
+ <MapGeofenceEdit />
+ </Map>
</div>
</div>
</div>