aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/StopReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-28 06:58:47 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-28 06:58:47 -0700
commitab26340ead6eba063734286a374101951d08688b (patch)
treed4a66f1ce400f2922d701aae1d5f8d0b59d383c2 /modern/src/reports/StopReportPage.js
parent01c61772eef07a7a9aa1beb9d99ed801721e456a (diff)
downloadtrackermap-web-ab26340ead6eba063734286a374101951d08688b.tar.gz
trackermap-web-ab26340ead6eba063734286a374101951d08688b.tar.bz2
trackermap-web-ab26340ead6eba063734286a374101951d08688b.zip
Unify report styles
Diffstat (limited to 'modern/src/reports/StopReportPage.js')
-rw-r--r--modern/src/reports/StopReportPage.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js
index 6cf8be07..d2823b06 100644
--- a/modern/src/reports/StopReportPage.js
+++ b/modern/src/reports/StopReportPage.js
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
import {
Table, TableBody, TableCell, TableHead, TableRow,
} from '@mui/material';
-import { makeStyles } from '@mui/styles';
import {
formatDistance, formatHours, formatDate, formatVolume,
} from '../common/util/formatter';
@@ -14,6 +13,7 @@ import ReportsMenu from './components/ReportsMenu';
import ColumnSelect from './components/ColumnSelect';
import usePersistedState from '../common/util/usePersistedState';
import { useCatch } from '../reactHelper';
+import useReportStyles from './common/useReportStyles';
const columnsArray = [
['startTime', 'reportStartTime'],
@@ -26,18 +26,8 @@ const columnsArray = [
];
const columnsMap = new Map(columnsArray);
-const useStyles = makeStyles(() => ({
- header: {
- position: 'sticky',
- left: 0,
- display: 'flex',
- flexDirection: 'column',
- alignItems: 'stretch',
- },
-}));
-
const StopReportPage = () => {
- const classes = useStyles();
+ const classes = useReportStyles();
const t = useTranslation();
const distanceUnit = useAttributePreference('distanceUnit');