diff options
author | Boubrid Ihab <boubrid.ihab@gmail.com> | 2022-05-23 19:28:08 +0100 |
---|---|---|
committer | Boubrid Ihab <boubrid.ihab@gmail.com> | 2022-05-23 19:28:08 +0100 |
commit | 979b2d999320ab918d02020980a1e244cb356b74 (patch) | |
tree | c5d940604f851195e9d6a4452fc4025d7e938164 /modern/src | |
parent | 37a55dacdab9be41a6d39473ac2922b9875cefe9 (diff) | |
download | trackermap-web-979b2d999320ab918d02020980a1e244cb356b74.tar.gz trackermap-web-979b2d999320ab918d02020980a1e244cb356b74.tar.bz2 trackermap-web-979b2d999320ab918d02020980a1e244cb356b74.zip |
fix: npm run lint warning
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 1 | ||||
-rw-r--r-- | modern/src/reports/StatisticsPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 1 | ||||
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 6 |
4 files changed, 6 insertions, 4 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index b312ad2f..2745e657 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -94,6 +94,7 @@ const EventReportPage = () => { return item[key]; } }; + return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportEvents']}> <ReportFilter handleSubmit={handleSubmit}> diff --git a/modern/src/reports/StatisticsPage.js b/modern/src/reports/StatisticsPage.js index 4dd55745..b9b14902 100644 --- a/modern/src/reports/StatisticsPage.js +++ b/modern/src/reports/StatisticsPage.js @@ -40,7 +40,7 @@ const StatisticsPage = () => { throw Error(await response.text()); } }); -console.log(items); + return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'statisticsTitle']}> <ReportFilter handleSubmit={handleSubmit} showOnly ignoreDevice> diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 408f8798..55091292 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -70,6 +70,7 @@ const StopReportPage = () => { return item[key]; } }; + return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportStops']}> <ReportFilter handleSubmit={handleSubmit}> diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 8bf03a9a..b428ecf0 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -76,9 +76,9 @@ const SummaryReportPage = () => { return item[key]; } }; - const generateKey = (item) => { - return `${ item.deviceId }_${Date.parse(item.startTime)}`; - } + + const generateKey = (item) => (`${item.deviceId}_${Date.parse(item.startTime)}`); + return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportSummary']}> <ReportFilter handleSubmit={handleSubmit}> |