aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/EventReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 15:53:21 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 15:53:21 -0800
commitbcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8 (patch)
treee46f13f1fa20cde766939974ad9d05edb5cb3588 /modern/src/reports/EventReportPage.js
parenta806e75842f9c5a441232fc88ab09735a1320980 (diff)
downloadtrackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.tar.gz
trackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.tar.bz2
trackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.zip
Minor reports cleanup
Diffstat (limited to 'modern/src/reports/EventReportPage.js')
-rw-r--r--modern/src/reports/EventReportPage.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index e9bca4ef..3e12af98 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -21,11 +21,12 @@ const ReportFilterForm = ({ onResult }) => {
onResult(await response.json());
}
}
+
return (
<ReportFilter handleSubmit={handleSubmit}>
<FormControl variant="filled" margin="normal" fullWidth>
<InputLabel>{t('reportEventTypes')}</InputLabel>
- <Select value={eventType} onChange={(e) => setEventType(e.target.value)} multiple>
+ <Select value={eventType} onChange={e => setEventType(e.target.value)} multiple>
<MenuItem value="allEvents">{t('eventAll')}</MenuItem>
<MenuItem value="deviceOnline">{t('eventDeviceOnline')}</MenuItem>
<MenuItem value="deviceUnknown">{t('eventDeviceUnknown')}</MenuItem>
@@ -66,11 +67,9 @@ const EventReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item) => (
+ {items.map(item => (
<TableRow key={item.id}>
- <TableCell>
- {formatPosition(item, 'serverTime')}
- </TableCell>
+ <TableCell>{formatPosition(item, 'serverTime')}</TableCell>
<TableCell>{item.type}</TableCell>
<TableCell>{}</TableCell>
<TableCell>{}</TableCell>