aboutsummaryrefslogtreecommitdiff
path: root/modern/src/admin
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/admin')
-rw-r--r--modern/src/admin/ServerPage.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js
index 62c93f6..b424aac 100644
--- a/modern/src/admin/ServerPage.js
+++ b/modern/src/admin/ServerPage.js
@@ -9,8 +9,8 @@ import { useHistory } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
import { sessionActions } from '../store';
import EditAttributesView from '../attributes/EditAttributesView';
-import deviceAttributes from '../attributes/deviceAttributes';
-import userAttributes from '../attributes/userAttributes';
+import { useDeviceAttributes } from '../attributes/deviceAttributes';
+import { useUserAttributes } from '../attributes/userAttributes';
import OptionsLayout from '../settings/OptionsLayout';
import { useTranslation } from '../LocalizationProvider';
@@ -36,6 +36,9 @@ const ServerPage = () => {
const dispatch = useDispatch();
const t = useTranslation();
+ const userAttributes = useUserAttributes(t);
+ const deviceAttributes = useDeviceAttributes(t);
+
const item = useSelector((state) => state.session.server);
const setItem = (updatedItem) => dispatch(sessionActions.updateServer(updatedItem));