aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/TripReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-08 18:11:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-08 18:11:23 -0700
commit98f2dd952e35e41045c7c9f925e229000bbe4797 (patch)
tree8f05333308f5542991dfb6a019ff3b4a2959899d /modern/src/reports/TripReportPage.js
parentbf95e1bb48379bc1c3482d3f201017250991a832 (diff)
downloadtrackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.gz
trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.bz2
trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.zip
Migrate reports to page layout
Diffstat (limited to 'modern/src/reports/TripReportPage.js')
-rw-r--r--modern/src/reports/TripReportPage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js
index a87031d3..a0141b68 100644
--- a/modern/src/reports/TripReportPage.js
+++ b/modern/src/reports/TripReportPage.js
@@ -5,9 +5,10 @@ import {
formatDistance, formatSpeed, formatHours, formatDate, formatVolume,
} from '../common/util/formatter';
import ReportFilter from './components/ReportFilter';
-import ReportLayout from './components/ReportLayout';
import { useAttributePreference } 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) => {
@@ -116,7 +117,8 @@ const TripReportPage = () => {
}];
return (
- <ReportLayout filter={<Filter setItems={setItems} />}>
+ <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportTrips']}>
+ <Filter setItems={setItems} />
<DataGrid
rows={items}
columns={columns}
@@ -124,7 +126,7 @@ const TripReportPage = () => {
autoHeight
getRowId={() => Math.random()}
/>
- </ReportLayout>
+ </PageLayout>
);
};