diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2024-03-08 11:10:49 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2024-03-08 11:10:49 +0100 |
commit | 3229441f4b254eb13266486ff5b29e3dd952357b (patch) | |
tree | 4af16db91131f2c1e1b715b054bb58df12960943 /modern/src/reports/components | |
parent | fe7b4800224352c628fb925c85a937684af58e6f (diff) | |
download | trackermap-web-3229441f4b254eb13266486ff5b29e3dd952357b.tar.gz trackermap-web-3229441f4b254eb13266486ff5b29e3dd952357b.tar.bz2 trackermap-web-3229441f4b254eb13266486ff5b29e3dd952357b.zip |
fix: Linting.
Diffstat (limited to 'modern/src/reports/components')
-rw-r--r-- | modern/src/reports/components/ReportFilter.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/reports/components/ReportFilter.jsx b/modern/src/reports/components/ReportFilter.jsx index 5b4c5786..e6e08f16 100644 --- a/modern/src/reports/components/ReportFilter.jsx +++ b/modern/src/reports/components/ReportFilter.jsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { - FormControl, InputLabel, Select, MenuItem, Button, TextField, Typography, Autocomplete + FormControl, InputLabel, Select, MenuItem, Button, TextField, Typography, } from '@mui/material'; import { useDispatch, useSelector } from 'react-redux'; import dayjs from 'dayjs'; @@ -92,7 +92,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore <div className={classes.filter}> {!ignoreDevice && ( <div className={classes.filterItem}> - <SelectField + <SelectField label={t(multiDevice ? 'deviceTitle' : 'reportDevice')} data={Object.values(devices).sort((a, b) => a.name.localeCompare(b.name))} value={multiDevice ? deviceIds : deviceId} @@ -104,13 +104,13 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore )} {includeGroups && ( <div className={classes.filterItem}> - <SelectField + <SelectField label={t('settingsGroups')} data={Object.values(groups).sort((a, b) => a.name.localeCompare(b.name))} value={groupIds} onChange={(e) => dispatch(reportsActions.updateGroupIds(e.target.value))} multiple - fullWidth + fullWidth /> </div> )} |