aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/ComputedAttributePage.jsx
diff options
context:
space:
mode:
authorMatjaž Črnko <matjaz.crnko@gmail.com>2024-03-08 10:59:29 +0100
committerGitHub <noreply@github.com>2024-03-08 10:59:29 +0100
commitfe7b4800224352c628fb925c85a937684af58e6f (patch)
treed5a111f5cedbba4a10278695227447ee12113db0 /modern/src/settings/ComputedAttributePage.jsx
parentb87f2387ae597e57d9e2591ab01595e76b65d7c5 (diff)
parentc9da10062998a231c038cd3a519f72128fcea2bb (diff)
downloadtrackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.tar.gz
trackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.tar.bz2
trackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.zip
Merge branch 'traccar:master' into autocomplete-instead-of-single-select
Diffstat (limited to 'modern/src/settings/ComputedAttributePage.jsx')
-rw-r--r--modern/src/settings/ComputedAttributePage.jsx13
1 files changed, 2 insertions, 11 deletions
diff --git a/modern/src/settings/ComputedAttributePage.jsx b/modern/src/settings/ComputedAttributePage.jsx
index e3a5e5a2..1b19033c 100644
--- a/modern/src/settings/ComputedAttributePage.jsx
+++ b/modern/src/settings/ComputedAttributePage.jsx
@@ -14,7 +14,6 @@ import {
Button,
Snackbar,
} from '@mui/material';
-import makeStyles from '@mui/styles/makeStyles';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import EditItemView from './components/EditItemView';
import { useTranslation } from '../common/components/LocalizationProvider';
@@ -23,20 +22,12 @@ import SettingsMenu from './components/SettingsMenu';
import SelectField from '../common/components/SelectField';
import { useCatch } from '../reactHelper';
import { snackBarDurationLongMs } from '../common/util/duration';
+import useSettingsStyles from './common/useSettingsStyles';
const allowedProperties = ['valid', 'latitude', 'longitude', 'altitude', 'speed', 'course', 'address', 'accuracy'];
-const useStyles = makeStyles((theme) => ({
- details: {
- display: 'flex',
- flexDirection: 'column',
- gap: theme.spacing(2),
- paddingBottom: theme.spacing(3),
- },
-}));
-
const ComputedAttributePage = () => {
- const classes = useStyles();
+ const classes = useSettingsStyles();
const t = useTranslation();
const positionAttributes = usePositionAttributes(t);