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/settings/components | |
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/settings/components')
-rw-r--r-- | modern/src/settings/components/EditItemView.js | 1 | ||||
-rw-r--r-- | modern/src/settings/components/SettingsMenu.js | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/modern/src/settings/components/EditItemView.js b/modern/src/settings/components/EditItemView.js index a5ac31b1..a646f629 100644 --- a/modern/src/settings/components/EditItemView.js +++ b/modern/src/settings/components/EditItemView.js @@ -37,7 +37,6 @@ const EditItemView = ({ const { id } = useParams(); useEffectAsync(async () => { - console.log(item); if (!item) { if (id) { const response = await fetch(`/api/${endpoint}/${id}`); diff --git a/modern/src/settings/components/SettingsMenu.js b/modern/src/settings/components/SettingsMenu.js index ef5b07d7..a37d5d1a 100644 --- a/modern/src/settings/components/SettingsMenu.js +++ b/modern/src/settings/components/SettingsMenu.js @@ -1,6 +1,6 @@ import React from 'react'; import { - Divider, List, ListItem, ListItemIcon, ListItemText, + Divider, List, ListItemButton, ListItemIcon, ListItemText, } from '@mui/material'; import SettingsIcon from '@mui/icons-material/Settings'; import CreateIcon from '@mui/icons-material/Create'; @@ -21,10 +21,10 @@ import useFeatures from '../../common/util/useFeatures'; const MenuItem = ({ title, link, icon, selected, }) => ( - <ListItem button key={link} component={Link} to={link} selected={selected}> + <ListItemButton key={link} component={Link} to={link} selected={selected}> <ListItemIcon>{icon}</ListItemIcon> <ListItemText primary={title} /> - </ListItem> + </ListItemButton> ); const SettingsMenu = () => { |