From fdbc6762b10233950d9c84fc71a9a8c11823f0a9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 22 May 2022 18:08:47 -0700 Subject: Remove unnecessary code --- modern/src/other/EventPage.js | 9 +++------ modern/src/other/GeofencesPage.js | 11 ++++------- 2 files changed, 7 insertions(+), 13 deletions(-) (limited to 'modern/src/other') 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 = () => {
- - - {position && } - - + + {position && } +
); 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 = () => {
- - - - - - + + + +
-- cgit v1.2.3