diff options
Diffstat (limited to 'modern/src/settings')
-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 = () => { |