diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 00:21:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 00:21:33 -0700 |
commit | 105e4ec887e249ec47db83095504012bad22df80 (patch) | |
tree | 0ca61c0015b1941362de8d2a82a005a88659dca4 /modern/src/admin | |
parent | e6f906dbb565abdb29297ec67db3c922135c628c (diff) | |
download | trackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.gz trackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.bz2 trackermap-web-105e4ec887e249ec47db83095504012bad22df80.zip |
More translation migrations
Diffstat (limited to 'modern/src/admin')
-rw-r--r-- | modern/src/admin/ServerPage.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js index 62c93f67..b424aac4 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)); |