From f418231b6b2f5e030a0d2dcc390c314602b1f740 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Apr 2024 09:22:10 -0700 Subject: Move modern to the top --- src/settings/DeviceConnectionsPage.jsx | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 src/settings/DeviceConnectionsPage.jsx (limited to 'src/settings/DeviceConnectionsPage.jsx') diff --git a/src/settings/DeviceConnectionsPage.jsx b/src/settings/DeviceConnectionsPage.jsx new file mode 100644 index 00000000..c711d719 --- /dev/null +++ b/src/settings/DeviceConnectionsPage.jsx @@ -0,0 +1,107 @@ +import React from 'react'; +import { useParams } from 'react-router-dom'; +import { + Accordion, + AccordionSummary, + AccordionDetails, + Typography, + Container, +} from '@mui/material'; +import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; +import LinkField from '../common/components/LinkField'; +import { useTranslation } from '../common/components/LocalizationProvider'; +import SettingsMenu from './components/SettingsMenu'; +import { formatNotificationTitle } from '../common/util/formatter'; +import PageLayout from '../common/components/PageLayout'; +import useFeatures from '../common/util/useFeatures'; +import useSettingsStyles from './common/useSettingsStyles'; + +const DeviceConnectionsPage = () => { + const classes = useSettingsStyles(); + const t = useTranslation(); + + const { id } = useParams(); + + const features = useFeatures(); + + return ( + } + breadcrumbs={['settingsTitle', 'sharedDevice', 'sharedConnections']} + > + + + }> + + {t('sharedConnections')} + + + + + formatNotificationTitle(t, it)} + label={t('sharedNotifications')} + /> + {!features.disableDrivers && ( + `${it.name} (${it.uniqueId})`} + label={t('sharedDrivers')} + /> + )} + {!features.disableComputedAttributes && ( + it.description} + label={t('sharedComputedAttributes')} + /> + )} + {!features.disableSavedCommands && ( + it.description} + label={t('sharedSavedCommands')} + /> + )} + {!features.disableMaintenance && ( + + )} + + + + + ); +}; + +export default DeviceConnectionsPage; -- cgit v1.2.3