diff options
Diffstat (limited to 'modern/src/DevicePage.js')
-rw-r--r-- | modern/src/DevicePage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 5867c979..c3a49a58 100644 --- a/modern/src/DevicePage.js +++ b/modern/src/DevicePage.js @@ -7,12 +7,12 @@ import { import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import EditItemView from './EditItemView'; import EditAttributesView from './attributes/EditAttributesView'; -import deviceAttributes from './attributes/deviceAttributes'; import SelectField from './form/SelectField'; import deviceCategories from './common/deviceCategories'; import LinkField from './form/LinkField'; import { prefixString } from './common/stringUtils'; import { useTranslation } from './LocalizationProvider'; +import { useDeviceAttributes } from './attributes/deviceAttributes'; const useStyles = makeStyles(() => ({ details: { @@ -24,6 +24,8 @@ const DevicePage = () => { const classes = useStyles(); const t = useTranslation(); + const deviceAttributes = useDeviceAttributes(t); + const [item, setItem] = useState(); return ( |