mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
move Sensors to Modules
This commit is contained in:
@@ -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()}
|
||||||
|
|||||||
Reference in New Issue
Block a user