diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-12-05 18:55:04 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-12-05 18:55:04 +0530 |
commit | 63cd33bd73ff5cdd6a619e271281f846d66f8a0a (patch) | |
tree | cdc0e457523db34b9cf3b920196abda61344f64a /modern/src | |
parent | b497c4fbf7caabd38b902d225ae0229b33323309 (diff) | |
download | trackermap-web-63cd33bd73ff5cdd6a619e271281f846d66f8a0a.tar.gz trackermap-web-63cd33bd73ff5cdd6a619e271281f846d66f8a0a.tar.bz2 trackermap-web-63cd33bd73ff5cdd6a619e271281f846d66f8a0a.zip |
Chart type report code formatting
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/reports/ChartReportPage.js | 16 | ||||
-rw-r--r-- | modern/src/reports/ReportLayoutPage.js | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/modern/src/reports/ChartReportPage.js b/modern/src/reports/ChartReportPage.js index 841f1e73..6177341b 100644 --- a/modern/src/reports/ChartReportPage.js +++ b/modern/src/reports/ChartReportPage.js @@ -33,17 +33,17 @@ const ReportFilterForm = ({ setItems, type, setType }) => { } return ( - <React.Fragment> + <> <ReportFilter handleSubmit={handleSubmit} showOnly /> <FormControl variant="filled" margin="normal" fullWidth> - <InputLabel>{t('reportChartType')}</InputLabel> - <Select value={type} onChange={e => setType(e.target.value)}> - <MenuItem value="speed">{t('positionSpeed')}</MenuItem> - <MenuItem value="accuracy">{t('positionAccuracy')}</MenuItem> - <MenuItem value="altitude">{t('positionAltitude')}</MenuItem> - </Select> + <InputLabel>{t('reportChartType')}</InputLabel> + <Select value={type} onChange={e => setType(e.target.value)}> + <MenuItem value="speed">{t('positionSpeed')}</MenuItem> + <MenuItem value="accuracy">{t('positionAccuracy')}</MenuItem> + <MenuItem value="altitude">{t('positionAltitude')}</MenuItem> + </Select> </FormControl> - </React.Fragment> + </> ) }; diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js index 67dff5a4..93cf6dab 100644 --- a/modern/src/reports/ReportLayoutPage.js +++ b/modern/src/reports/ReportLayoutPage.js @@ -27,7 +27,7 @@ const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, type, s <Grid container spacing={2}> <Grid item xs={12} md={3} lg={2}> <Paper className={classes.form}> - <ReportFilterForm setItems={ setItems } type={ type } setType={ setType }/> + <ReportFilterForm setItems={ setItems } type={ type } setType={ setType } /> </Paper> </Grid> <Grid item xs={12} md={9} lg={10}> |