diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-14 19:05:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-14 19:05:53 -0700 |
commit | 49782b267d85fc00f999a3e4c2161bad10b73585 (patch) | |
tree | 0cf1ec08be260ec1b8a584b998428efbf7f315fd /modern/src/reports | |
parent | 9027b70996d2c39e51dee1e3fc9b55336c480a60 (diff) | |
download | trackermap-web-49782b267d85fc00f999a3e4c2161bad10b73585.tar.gz trackermap-web-49782b267d85fc00f999a3e4c2161bad10b73585.tar.bz2 trackermap-web-49782b267d85fc00f999a3e4c2161bad10b73585.zip |
Fix issues
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 1 | ||||
-rw-r--r-- | modern/src/reports/components/ColumnSelect.js | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 67eb4962..98f2cd5c 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -8,6 +8,7 @@ import PageLayout from '../common/components/PageLayout'; import ReportsMenu from './components/ReportsMenu'; import usePersistedState from '../common/util/usePersistedState'; import PositionValue from '../common/components/PositionValue'; +import ColumnSelect from './components/ColumnSelect'; const columnsArray = [ ['fixTime', 'positionFixTime'], diff --git a/modern/src/reports/components/ColumnSelect.js b/modern/src/reports/components/ColumnSelect.js index 98e97420..de7a156b 100644 --- a/modern/src/reports/components/ColumnSelect.js +++ b/modern/src/reports/components/ColumnSelect.js @@ -1,10 +1,12 @@ -import { useTranslation } from "../../common/components/LocalizationProvider"; -import { useFilterStyles } from "./ReportFilter"; +import React from 'react'; +import { FormControl, InputLabel, MenuItem, Select } from '@material-ui/core'; +import { useTranslation } from '../../common/components/LocalizationProvider'; +import { useFilterStyles } from './ReportFilter'; const ColumnSelect = ({ columns, setColumns, columnsArray }) => { const classes = useFilterStyles(); const t = useTranslation(); - + return ( <div className={classes.item}> <FormControl variant="filled" fullWidth> @@ -23,5 +25,5 @@ const ColumnSelect = ({ columns, setColumns, columnsArray }) => { </div> ); }; - + export default ColumnSelect; |