aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components/EditAttributesAccordion.jsx
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-24 13:47:19 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-24 13:47:19 -0800
commit89a40e48259ce39959101b4f1f7dc5e26c630b74 (patch)
tree2bbffc14a1846cc7ba7b283f6accd0c1577fe902 /modern/src/settings/components/EditAttributesAccordion.jsx
parent460cd9ae0e98e9c2d3fb2e566d10d9ac99aa18f5 (diff)
downloadtrackermap-web-89a40e48259ce39959101b4f1f7dc5e26c630b74.tar.gz
trackermap-web-89a40e48259ce39959101b4f1f7dc5e26c630b74.tar.bz2
trackermap-web-89a40e48259ce39959101b4f1f7dc5e26c630b74.zip
Unify settings styles
Diffstat (limited to 'modern/src/settings/components/EditAttributesAccordion.jsx')
-rw-r--r--modern/src/settings/components/EditAttributesAccordion.jsx16
1 files changed, 2 insertions, 14 deletions
diff --git a/modern/src/settings/components/EditAttributesAccordion.jsx b/modern/src/settings/components/EditAttributesAccordion.jsx
index 214ddb0e..4d4ae254 100644
--- a/modern/src/settings/components/EditAttributesAccordion.jsx
+++ b/modern/src/settings/components/EditAttributesAccordion.jsx
@@ -15,7 +15,6 @@ import {
Typography,
AccordionDetails,
} from '@mui/material';
-import makeStyles from '@mui/styles/makeStyles';
import CloseIcon from '@mui/icons-material/Close';
import AddIcon from '@mui/icons-material/Add';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
@@ -26,21 +25,10 @@ import {
distanceFromMeters, distanceToMeters, distanceUnitString, speedFromKnots, speedToKnots, speedUnitString, volumeFromLiters, volumeToLiters, volumeUnitString,
} from '../../common/util/converter';
import useFeatures from '../../common/util/useFeatures';
-
-const useStyles = makeStyles((theme) => ({
- removeButton: {
- marginRight: theme.spacing(1.5),
- },
- details: {
- display: 'flex',
- flexDirection: 'column',
- gap: theme.spacing(2),
- paddingBottom: theme.spacing(3),
- },
-}));
+import useSettingsStyles from '../common/useSettingsStyles';
const EditAttributesAccordion = ({ attribute, attributes, setAttributes, definitions, focusAttribute }) => {
- const classes = useStyles();
+ const classes = useSettingsStyles();
const t = useTranslation();
const features = useFeatures();