new icons

This commit is contained in:
proddy
2020-11-02 22:50:50 +01:00
parent 824c40f831
commit ca94539402

View File

@@ -3,8 +3,8 @@ import { Link, withRouter, RouteComponentProps } from "react-router-dom";
import { List, ListItem, ListItemIcon, ListItemText } from "@material-ui/core";
import SettingsIcon from '@material-ui/icons/Settings';
import SettingsRemoteIcon from "@material-ui/icons/SettingsRemote";
import TuneIcon from '@material-ui/icons/Tune';
import DashboardIcon from "@material-ui/icons/Dashboard";
import { withAuthenticatedContext, AuthenticatedContextProps } from '../authentication';
@@ -18,13 +18,13 @@ class ProjectMenu extends Component<ProjectProps> {
<List>
<ListItem to='/ems-esp/' selected={path.startsWith('/ems-esp/status') || path.startsWith('/ems-esp/devices') || path.startsWith('/ems-esp/help')} button component={Link}>
<ListItemIcon>
<SettingsRemoteIcon />
<DashboardIcon />
</ListItemIcon>
<ListItemText primary="Dashboard" />
</ListItem>
<ListItem to='/ems-esp/settings' selected={path.startsWith('/ems-esp/settings')} button component={Link} disabled={!authenticatedContext.me.admin}>
<ListItemIcon>
<SettingsIcon />
<TuneIcon />
</ListItemIcon>
<ListItemText primary="Settings" />
</ListItem>