aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 16:16:51 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 16:16:51 -0800
commitcfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a (patch)
treea9f9ed8fd581e2b7aff4f0f8dbde2e975fe48754
parent982156708be8fd1169627ad752a884f2095a6bed (diff)
downloadetbsa-traccar-web-cfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a.tar.gz
etbsa-traccar-web-cfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a.tar.bz2
etbsa-traccar-web-cfb788f1f8738b0b29ffb6d27ca8790f1ef7b49a.zip
Formatting
-rw-r--r--modern/src/reports/EventReportPage.js2
-rw-r--r--modern/src/reports/RouteReportPage.js3
-rw-r--r--modern/src/reports/StopReportPage.js1
3 files changed, 5 insertions, 1 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index e0eed0c..b11933a 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -7,6 +7,7 @@ import ReportFilter from './ReportFilter';
import ReportLayoutPage from './ReportLayoutPage';
const ReportFilterForm = ({ onResult }) => {
+
const [eventType, setEventType] = useState(['allEvents']);
const handleSubmit = async (deviceId, from, to) => {
@@ -48,6 +49,7 @@ const ReportFilterForm = ({ onResult }) => {
}
const EventReportPage = () => {
+
const [items, setItems] = useState([]);
return (
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index d2a1b68..7ff5d40 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -10,7 +10,7 @@ const ReportFilterForm = ({ onResult }) => {
const handleSubmit = async (deviceId, from, to) => {
const query = new URLSearchParams({ deviceId, from, to });
const response = await fetch(`/api/reports/route?${query.toString()}`, { headers: { Accept: 'application/json' } });
- if(response.ok) {
+ if (response.ok) {
onResult(await response.json());
}
}
@@ -18,6 +18,7 @@ const ReportFilterForm = ({ onResult }) => {
};
const RouteReportPage = () => {
+
const [items, setItems] = useState([]);
return (
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js
index 751909d..ec4c199 100644
--- a/modern/src/reports/StopReportPage.js
+++ b/modern/src/reports/StopReportPage.js
@@ -19,6 +19,7 @@ const ReportFilterForm = ({ onResult }) => {
};
const StopReportPage = () => {
+
const distanceUnit = useAttributePreference('distanceUnit');
const [items, setItems] = useState([]);