diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-15 18:45:44 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-15 18:45:44 -0700 |
commit | 85a3576f3046f5bcf3bbac6ad952ef180762fd51 (patch) | |
tree | 2bf4f2ed43848ea5f1ec49fcfeb48a277bfe0436 /modern/src/settings/DriverPage.js | |
parent | 09e1e536aea906ae62f2a361df07d4b4532e62c2 (diff) | |
download | trackermap-web-85a3576f3046f5bcf3bbac6ad952ef180762fd51.tar.gz trackermap-web-85a3576f3046f5bcf3bbac6ad952ef180762fd51.tar.bz2 trackermap-web-85a3576f3046f5bcf3bbac6ad952ef180762fd51.zip |
Option to hide attributes
Diffstat (limited to 'modern/src/settings/DriverPage.js')
-rw-r--r-- | modern/src/settings/DriverPage.js | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/modern/src/settings/DriverPage.js b/modern/src/settings/DriverPage.js index 30f5106f..83d1f88f 100644 --- a/modern/src/settings/DriverPage.js +++ b/modern/src/settings/DriverPage.js @@ -6,7 +6,7 @@ import { import makeStyles from '@mui/styles/makeStyles'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import EditItemView from './components/EditItemView'; -import EditAttributesView from './components/EditAttributesView'; +import EditAttributesAccordion from './components/EditAttributesAccordion'; import { useTranslation } from '../common/components/LocalizationProvider'; import SettingsMenu from './components/SettingsMenu'; @@ -57,20 +57,11 @@ const DriverPage = () => { /> </AccordionDetails> </Accordion> - <Accordion> - <AccordionSummary expandIcon={<ExpandMoreIcon />}> - <Typography variant="subtitle1"> - {t('sharedAttributes')} - </Typography> - </AccordionSummary> - <AccordionDetails className={classes.details}> - <EditAttributesView - attributes={item.attributes} - setAttributes={(attributes) => setItem({ ...item, attributes })} - definitions={{}} - /> - </AccordionDetails> - </Accordion> + <EditAttributesAccordion + attributes={item.attributes} + setAttributes={(attributes) => setItem({ ...item, attributes })} + definitions={{}} + /> </> )} </EditItemView> |