From 979b2d999320ab918d02020980a1e244cb356b74 Mon Sep 17 00:00:00 2001 From: Boubrid Ihab Date: Mon, 23 May 2022 19:28:08 +0100 Subject: fix: npm run lint warning --- modern/src/reports/EventReportPage.js | 1 + modern/src/reports/StatisticsPage.js | 2 +- modern/src/reports/StopReportPage.js | 1 + modern/src/reports/SummaryReportPage.js | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'modern/src/reports') 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 ( } breadcrumbs={['reportTitle', 'reportEvents']}> 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 ( } breadcrumbs={['reportTitle', 'statisticsTitle']}> 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 ( } breadcrumbs={['reportTitle', 'reportStops']}> 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 ( } breadcrumbs={['reportTitle', 'reportSummary']}> -- cgit v1.2.3