aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 19:49:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 19:49:47 -0700
commit9bfda9e131ddda3076b4094a94795db41072a39c (patch)
treed6b4e12f2d62431cc0d320b5396e578944af78f4 /modern/src/reports
parentbbc54a464a8a3cf41904c5335fb1845ff8af1887 (diff)
downloadtrackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.gz
trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.bz2
trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.zip
Implement attributes editing
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/RouteReportPage.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index a478ddbd..37e74f46 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -86,7 +86,7 @@ const RouteReportPage = () => {
<Paper className={classes.form}>
<FormControl variant='filled' margin='normal' fullWidth>
<InputLabel>{t('reportDevice')}</InputLabel>
- <Select value={deviceId} onChange={(e) => setDeviceId(e.target.value)}>
+ <Select value={deviceId} onChange={e => setDeviceId(e.target.value)}>
{devices.map((device) => (
<MenuItem value={device.id}>{device.name}</MenuItem>
))}
@@ -94,7 +94,7 @@ const RouteReportPage = () => {
</FormControl>
<FormControl variant='filled' margin='normal' fullWidth>
<InputLabel>{t('reportPeriod')}</InputLabel>
- <Select value={period} onChange={(e) => setPeriod(e.target.value)}>
+ <Select value={period} onChange={e => setPeriod(e.target.value)}>
<MenuItem value='today'>{t('reportToday')}</MenuItem>
<MenuItem value='yesterday'>{t('reportYesterday')}</MenuItem>
<MenuItem value='thisWeek'>{t('reportThisWeek')}</MenuItem>
@@ -111,7 +111,7 @@ const RouteReportPage = () => {
label={t('reportFrom')}
type='datetime-local'
value={from.format(moment.HTML5_FMT.DATETIME_LOCAL)}
- onChange={(e) => setFrom(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
+ onChange={e => setFrom(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
fullWidth />
}
{period === 'custom' &&