move Sensors to Modules

This commit is contained in:
proddy
2024-10-10 21:20:49 +01:00
parent 6b99fb0404
commit 3203d03252

View File

@@ -54,7 +54,6 @@ const LayoutMenu = () => {
<List component="nav"> <List component="nav">
<LayoutMenuItem icon={StarIcon} label="Dashboard" to={`/dashboard`} /> <LayoutMenuItem icon={StarIcon} label="Dashboard" to={`/dashboard`} />
<LayoutMenuItem icon={CategoryIcon} label={LL.DEVICES()} to={`/devices`} /> <LayoutMenuItem icon={CategoryIcon} label={LL.DEVICES()} to={`/devices`} />
<LayoutMenuItem icon={SensorsIcon} label={LL.SENSORS()} to={`/sensors`} />
<Divider /> <Divider />
<Box <Box
@@ -79,19 +78,19 @@ const LayoutMenu = () => {
mb: '2px', mb: '2px',
color: 'lightblue' color: 'lightblue'
}} }}
secondary={ // secondary={
LL.CUSTOMIZATIONS() + // LL.CUSTOMIZATIONS() +
', ' + // ', ' +
LL.SCHEDULER() + // LL.SCHEDULER() +
', ' + // ', ' +
LL.CUSTOM_ENTITIES(0) + // LL.CUSTOM_ENTITIES(0) +
'...' // '...'
} // }
secondaryTypographyProps={{ // secondaryTypographyProps={{
noWrap: true, // noWrap: true,
fontSize: 12, // fontSize: 12,
color: menuOpen ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0.5)' // color: menuOpen ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0.5)'
}} // }}
sx={{ my: 0 }} sx={{ my: 0 }}
/> />
<KeyboardArrowDown <KeyboardArrowDown
@@ -105,6 +104,12 @@ const LayoutMenu = () => {
</ListItemButton> </ListItemButton>
{menuOpen && ( {menuOpen && (
<> <>
<LayoutMenuItem
icon={SensorsIcon}
label={LL.SENSORS()}
to={`/sensors`}
/>
<LayoutMenuItem <LayoutMenuItem
icon={ConstructionIcon} icon={ConstructionIcon}
label={LL.CUSTOMIZATIONS()} label={LL.CUSTOMIZATIONS()}