mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
new icons
This commit is contained in:
@@ -3,8 +3,8 @@ import { Link, withRouter, RouteComponentProps } from "react-router-dom";
|
|||||||
|
|
||||||
import { List, ListItem, ListItemIcon, ListItemText } from "@material-ui/core";
|
import { List, ListItem, ListItemIcon, ListItemText } from "@material-ui/core";
|
||||||
|
|
||||||
import SettingsIcon from '@material-ui/icons/Settings';
|
import TuneIcon from '@material-ui/icons/Tune';
|
||||||
import SettingsRemoteIcon from "@material-ui/icons/SettingsRemote";
|
import DashboardIcon from "@material-ui/icons/Dashboard";
|
||||||
|
|
||||||
import { withAuthenticatedContext, AuthenticatedContextProps } from '../authentication';
|
import { withAuthenticatedContext, AuthenticatedContextProps } from '../authentication';
|
||||||
|
|
||||||
@@ -18,13 +18,13 @@ class ProjectMenu extends Component<ProjectProps> {
|
|||||||
<List>
|
<List>
|
||||||
<ListItem to='/ems-esp/' selected={path.startsWith('/ems-esp/status') || path.startsWith('/ems-esp/devices') || path.startsWith('/ems-esp/help')} button component={Link}>
|
<ListItem to='/ems-esp/' selected={path.startsWith('/ems-esp/status') || path.startsWith('/ems-esp/devices') || path.startsWith('/ems-esp/help')} button component={Link}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<SettingsRemoteIcon />
|
<DashboardIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText primary="Dashboard" />
|
<ListItemText primary="Dashboard" />
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem to='/ems-esp/settings' selected={path.startsWith('/ems-esp/settings')} button component={Link} disabled={!authenticatedContext.me.admin}>
|
<ListItem to='/ems-esp/settings' selected={path.startsWith('/ems-esp/settings')} button component={Link} disabled={!authenticatedContext.me.admin}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<SettingsIcon />
|
<TuneIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText primary="Settings" />
|
<ListItemText primary="Settings" />
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user