diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-05-17 13:09:25 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-05-17 13:09:25 +0530 |
commit | 589244b4a65813271440d11c09fa63dfb4d8ad78 (patch) | |
tree | c70d92f4a03b358917277665484d3778bc2d5910 /modern/src/reports/SummaryReportPage.js | |
parent | 219019a3bd8a744a2cbf9dd16285a9ebfa5709cd (diff) | |
download | etbsa-traccar-web-589244b4a65813271440d11c09fa63dfb4d8ad78.tar.gz etbsa-traccar-web-589244b4a65813271440d11c09fa63dfb4d8ad78.tar.bz2 etbsa-traccar-web-589244b4a65813271440d11c09fa63dfb4d8ad78.zip |
Sidebar and Report Filter completed
Diffstat (limited to 'modern/src/reports/SummaryReportPage.js')
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 2af7d3b..f63f50b 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { DataGrid } from '@material-ui/data-grid'; -import { FormControlLabel, Checkbox } from '@material-ui/core'; +import { Grid, FormControlLabel, Checkbox } from '@material-ui/core'; import t from '../common/localization'; import { formatDistance, formatHours, formatDate, formatSpeed, formatVolume } from '../common/formatter'; import ReportFilter from './ReportFilter'; @@ -28,9 +28,11 @@ const Filter = ({ setItems }) => { return ( <ReportFilter handleSubmit={handleSubmit}> - <FormControlLabel - control={<Checkbox checked={daily} onChange={e => setDaily(e.target.checked)} />} - label={t('reportDaily')} /> + <Grid item xs={12} sm={6}> + <FormControlLabel + control={<Checkbox checked={daily} onChange={e => setDaily(e.target.checked)} />} + label={t('reportDaily')} /> + </Grid> </ReportFilter> ); } |