aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/EventReportPage.js1
-rw-r--r--modern/src/reports/StatisticsPage.js2
-rw-r--r--modern/src/reports/StopReportPage.js1
-rw-r--r--modern/src/reports/SummaryReportPage.js6
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}>