diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-22 09:10:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-22 09:10:05 -0700 |
commit | adca1297c6eebefdcdb6a5be25adc2f2b9d15559 (patch) | |
tree | 85408a68b4e236bab1d961641200c977ef64a514 /modern/src/common | |
parent | 50a97b2ec3a3a22955cae8bfd6a766b3abb2cf27 (diff) | |
download | trackermap-web-adca1297c6eebefdcdb6a5be25adc2f2b9d15559.tar.gz trackermap-web-adca1297c6eebefdcdb6a5be25adc2f2b9d15559.tar.bz2 trackermap-web-adca1297c6eebefdcdb6a5be25adc2f2b9d15559.zip |
List items and disabled device
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/components/SideNav.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modern/src/common/components/SideNav.js b/modern/src/common/components/SideNav.js index 648059d1..97968bd1 100644 --- a/modern/src/common/components/SideNav.js +++ b/modern/src/common/components/SideNav.js @@ -1,6 +1,6 @@ import React, { Fragment } from 'react'; import { - List, ListItem, ListItemText, ListItemIcon, Divider, ListSubheader, + List, ListItemText, ListItemIcon, Divider, ListSubheader, ListItemButton, } from '@mui/material'; import { Link, useLocation } from 'react-router-dom'; @@ -15,17 +15,16 @@ const SideNav = ({ routes }) => { <ListSubheader>{route.subheader}</ListSubheader> </Fragment> ) : ( - <ListItem + <ListItemButton disableRipple component={Link} key={route.href} - button to={route.href} selected={location.pathname.match(route.match || route.href) !== null} > <ListItemIcon>{route.icon}</ListItemIcon> <ListItemText primary={route.name} /> - </ListItem> + </ListItemButton> )))} </List> ); |