diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-28 06:58:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-28 06:58:47 -0700 |
commit | ab26340ead6eba063734286a374101951d08688b (patch) | |
tree | d4a66f1ce400f2922d701aae1d5f8d0b59d383c2 /modern/src/reports/RouteReportPage.js | |
parent | 01c61772eef07a7a9aa1beb9d99ed801721e456a (diff) | |
download | trackermap-web-ab26340ead6eba063734286a374101951d08688b.tar.gz trackermap-web-ab26340ead6eba063734286a374101951d08688b.tar.bz2 trackermap-web-ab26340ead6eba063734286a374101951d08688b.zip |
Unify report styles
Diffstat (limited to 'modern/src/reports/RouteReportPage.js')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 152d0ead..b29fb269 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -2,7 +2,6 @@ import React, { useState } from 'react'; import { IconButton, Table, TableBody, TableCell, TableHead, TableRow, } from '@mui/material'; -import { makeStyles } from '@mui/styles'; import GpsFixedIcon from '@mui/icons-material/GpsFixed'; import LocationSearchingIcon from '@mui/icons-material/LocationSearching'; import ReportFilter from './components/ReportFilter'; @@ -17,35 +16,10 @@ import { useCatch } from '../reactHelper'; import Map from '../map/core/Map'; import MapRoutePath from '../map/MapRoutePath'; import MapPositions from '../map/MapPositions'; - -const useStyles = makeStyles((theme) => ({ - container: { - height: '100%', - display: 'flex', - flexDirection: 'column', - }, - containerMap: { - flexBasis: '40%', - flexShrink: 0, - }, - containerMain: { - overflow: 'auto', - }, - header: { - position: 'sticky', - left: 0, - display: 'flex', - flexDirection: 'column', - alignItems: 'stretch', - }, - columnAction: { - width: '1%', - paddingLeft: theme.spacing(1), - }, -})); +import useReportStyles from './common/useReportStyles'; const RouteReportPage = () => { - const classes = useStyles(); + const classes = useReportStyles(); const t = useTranslation(); const positionAttributes = usePositionAttributes(t); |