diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-02-24 13:55:02 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-02-24 13:55:02 +0530 |
commit | 5935807a2db915bf17d71523107a51f06d586337 (patch) | |
tree | a8de8aa3f8fbd38c53d594100ce6c5483853da77 | |
parent | 9d00de0240a811fffe01948647386524f4ba9356 (diff) | |
download | trackermap-web-5935807a2db915bf17d71523107a51f06d586337.tar.gz trackermap-web-5935807a2db915bf17d71523107a51f06d586337.tar.bz2 trackermap-web-5935807a2db915bf17d71523107a51f06d586337.zip |
more improvement
-rw-r--r-- | modern/src/admin/StatisticsPage.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/modern/src/admin/StatisticsPage.js b/modern/src/admin/StatisticsPage.js index b7fb4748..1e440a46 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> + </> ) } |