aboutsummaryrefslogtreecommitdiff
path: root/modern/src/other/EventPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/other/EventPage.js')
-rw-r--r--modern/src/other/EventPage.js28
1 files changed, 7 insertions, 21 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js
index b040bfb3..9da8be79 100644
--- a/modern/src/other/EventPage.js
+++ b/modern/src/other/EventPage.js
@@ -14,7 +14,7 @@ import MapPositions from '../map/MapPositions';
import MapGeofence from '../map/MapGeofence';
import StatusCard from '../common/components/StatusCard';
-const useStyles = makeStyles((theme) => ({
+const useStyles = makeStyles(() => ({
root: {
height: '100%',
display: 'flex',
@@ -26,18 +26,6 @@ const useStyles = makeStyles((theme) => ({
mapContainer: {
flexGrow: 1,
},
- statusCard: {
- position: 'fixed',
- zIndex: 5,
- left: '50%',
- [theme.breakpoints.up('md')]: {
- bottom: theme.spacing(3),
- },
- [theme.breakpoints.down('md')]: {
- bottom: `calc(${theme.spacing(3)} + ${theme.dimensions.bottomBarHeight}px)`,
- },
- transform: 'translateX(-50%)',
- },
}));
const EventPage = () => {
@@ -97,14 +85,12 @@ const EventPage = () => {
</MapView>
{position && <MapCamera latitude={position.latitude} longitude={position.longitude} />}
{position && showCard && (
- <div className={classes.statusCard}>
- <StatusCard
- deviceId={position.deviceId}
- position={position}
- onClose={() => setShowCard(false)}
- disableActions
- />
- </div>
+ <StatusCard
+ deviceId={position.deviceId}
+ position={position}
+ onClose={() => setShowCard(false)}
+ disableActions
+ />
)}
</div>
</div>