diff options
author | Matjaž Črnko <matjaz.crnko@gmail.com> | 2024-03-08 10:59:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 10:59:29 +0100 |
commit | fe7b4800224352c628fb925c85a937684af58e6f (patch) | |
tree | d5a111f5cedbba4a10278695227447ee12113db0 /modern/src/settings/DeviceConnectionsPage.jsx | |
parent | b87f2387ae597e57d9e2591ab01595e76b65d7c5 (diff) | |
parent | c9da10062998a231c038cd3a519f72128fcea2bb (diff) | |
download | trackermap-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/DeviceConnectionsPage.jsx')
-rw-r--r-- | modern/src/settings/DeviceConnectionsPage.jsx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/modern/src/settings/DeviceConnectionsPage.jsx b/modern/src/settings/DeviceConnectionsPage.jsx index 88d47872..10d0c3f6 100644 --- a/modern/src/settings/DeviceConnectionsPage.jsx +++ b/modern/src/settings/DeviceConnectionsPage.jsx @@ -7,7 +7,6 @@ import { Typography, Container, } from '@mui/material'; -import makeStyles from '@mui/styles/makeStyles'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import LinkField from '../common/components/LinkField'; import { useTranslation } from '../common/components/LocalizationProvider'; @@ -15,21 +14,10 @@ import SettingsMenu from './components/SettingsMenu'; import { formatNotificationTitle } from '../common/util/formatter'; import PageLayout from '../common/components/PageLayout'; import useFeatures from '../common/util/useFeatures'; - -const useStyles = makeStyles((theme) => ({ - container: { - marginTop: theme.spacing(2), - }, - details: { - display: 'flex', - flexDirection: 'column', - gap: theme.spacing(2), - paddingBottom: theme.spacing(3), - }, -})); +import useSettingsStyles from './common/useSettingsStyles'; const DeviceConnectionsPage = () => { - const classes = useStyles(); + const classes = useSettingsStyles(); const t = useTranslation(); const { id } = useParams(); @@ -73,6 +61,7 @@ const DeviceConnectionsPage = () => { baseId={id} keyBase="deviceId" keyLink="driverId" + titleGetter={(it) => `${it.name} (${it.uniqueId})`} label={t('sharedDrivers')} /> )} |