diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-08 18:11:23 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-08 18:11:23 -0700 |
commit | 98f2dd952e35e41045c7c9f925e229000bbe4797 (patch) | |
tree | 8f05333308f5542991dfb6a019ff3b4a2959899d /modern/src/reports/RouteReportPage.js | |
parent | bf95e1bb48379bc1c3482d3f201017250991a832 (diff) | |
download | trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.gz trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.bz2 trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.zip |
Migrate reports to page layout
Diffstat (limited to 'modern/src/reports/RouteReportPage.js')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 035f6acd..dfce525f 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -1,14 +1,14 @@ import React, { useState } from 'react'; -import { Paper } from '@material-ui/core'; import { DataGrid } from '@material-ui/data-grid'; import { useTheme } from '@material-ui/core/styles'; import { formatDistance, formatSpeed, formatBoolean, formatDate, formatCoordinate, } from '../common/util/formatter'; import ReportFilter from './components/ReportFilter'; -import ReportLayout from './components/ReportLayout'; import { useAttributePreference, usePreference } from '../common/util/preferences'; import { useTranslation } from '../common/components/LocalizationProvider'; +import PageLayout from '../common/components/PageLayout'; +import ReportsMenu from './components/ReportsMenu'; const Filter = ({ setItems }) => { const handleSubmit = async (deviceId, from, to, mail, headers) => { @@ -88,16 +88,15 @@ const RouteReportPage = () => { const [items, setItems] = useState([]); return ( - <ReportLayout filter={<Filter setItems={setItems} />}> - <Paper> - <DataGrid - rows={items} - columns={columns} - hideFooter - autoHeight - /> - </Paper> - </ReportLayout> + <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportRoute']}> + <Filter setItems={setItems} /> + <DataGrid + rows={items} + columns={columns} + hideFooter + autoHeight + /> + </PageLayout> ); }; |