feat: add the missing options to the menu and change colors

This commit is contained in:
Rodolfo Ruiz
2025-06-10 21:48:43 -06:00
parent c888fc4cd0
commit 2078715a34
2 changed files with 14 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import { Drawer, List, ListItem, ListItemText, useMediaQuery } from '@mui/materi
const menuOptions = { const menuOptions = {
public: ['Home', 'Explore', 'Contact'], public: ['Home', 'Explore', 'Contact'],
restricted: ['Dashboard', 'Projects', 'Support'], restricted: ['Dashboard', 'Projects', 'Support'],
private: ['Admin', 'Users', 'Settings'], private: ['Products', 'Provider', 'Categories', 'Users', 'Orders', 'Settings', 'Logout'],
}; };
export default function MenuDrawer({ zone = 'public', open, onClose }) { export default function MenuDrawer({ zone = 'public', open, onClose }) {
@@ -14,7 +14,7 @@ export default function MenuDrawer({ zone = 'public', open, onClose }) {
<Drawer anchor="left" open={open} onClose={onClose} slotProps={{ <Drawer anchor="left" open={open} onClose={onClose} slotProps={{
paper: { paper: {
sx: { sx: {
backgroundColor: '#000000a0', backgroundColor: '#40120EFF',
width: isMobile ? '100vw' : 250, width: isMobile ? '100vw' : 250,
}, },
}, },
@@ -27,7 +27,7 @@ export default function MenuDrawer({ zone = 'public', open, onClose }) {
slotProps={{ slotProps={{
primary: { primary: {
sx: { sx: {
color: '#ccc', color: '#DFCCBCFF',
fontWeight: 'medium', fontWeight: 'medium',
}, },
}, },

View File

@@ -61,6 +61,17 @@ const theme = createTheme({
}, },
}, },
}, },
MuiListItem: {
styleOverrides: {
root: {
transition: 'background-color 0.2s ease-in-out',
'&:hover': {
backgroundColor: '#AA7665FF',
},
},
},
},
} }
}); });