aboutsummaryrefslogtreecommitdiff
path: root/modern/src/admin
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-02-24 13:55:02 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-02-24 13:55:02 +0530
commit5935807a2db915bf17d71523107a51f06d586337 (patch)
treea8de8aa3f8fbd38c53d594100ce6c5483853da77 /modern/src/admin
parent9d00de0240a811fffe01948647386524f4ba9356 (diff)
downloadetbsa-traccar-web-5935807a2db915bf17d71523107a51f06d586337.tar.gz
etbsa-traccar-web-5935807a2db915bf17d71523107a51f06d586337.tar.bz2
etbsa-traccar-web-5935807a2db915bf17d71523107a51f06d586337.zip
more improvement
Diffstat (limited to 'modern/src/admin')
-rw-r--r--modern/src/admin/StatisticsPage.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/modern/src/admin/StatisticsPage.js b/modern/src/admin/StatisticsPage.js
index b7fb474..1e440a4 100644
--- a/modern/src/admin/StatisticsPage.js
+++ b/modern/src/admin/StatisticsPage.js
@@ -65,29 +65,29 @@ const Filter = ({ setItems }) => {
<MenuItem value="previousMonth">{t('reportPreviousMonth')}</MenuItem>
<MenuItem value="custom">{t('reportCustom')}</MenuItem>
</Select>
- </FormControl>
- {period === 'custom' && (
- <TextField
- margin="normal"
- variant="filled"
- 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))}
- fullWidth />
- )}
- {period === 'custom' && (
- <TextField
- margin="normal"
- variant="filled"
- label={t('reportTo')}
- type="datetime-local"
- value={to.format(moment.HTML5_FMT.DATETIME_LOCAL)}
- onChange={e => setTo(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
- fullWidth />
- )}
- <Button variant="contained" color="primary" onClick={handleClick} fullWidth>{t('reportShow')}</Button>
- </>
+ </FormControl>
+ {period === 'custom' && (
+ <TextField
+ margin="normal"
+ variant="filled"
+ 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))}
+ fullWidth />
+ )}
+ {period === 'custom' && (
+ <TextField
+ margin="normal"
+ variant="filled"
+ label={t('reportTo')}
+ type="datetime-local"
+ value={to.format(moment.HTML5_FMT.DATETIME_LOCAL)}
+ onChange={e => setTo(moment(e.target.value, moment.HTML5_FMT.DATETIME_LOCAL))}
+ fullWidth />
+ )}
+ <Button variant="contained" color="primary" onClick={handleClick} fullWidth>{t('reportShow')}</Button>
+ </>
)
}