feat: (drawer) add custom icon support for custom links
This commit is contained in:
parent
87bca1a8a2
commit
431e89deaa
1 changed files with 2 additions and 3 deletions
|
@ -6,8 +6,8 @@ import Dashboard from '@mui/icons-material/Dashboard';
|
||||||
import Edit from '@mui/icons-material/Edit';
|
import Edit from '@mui/icons-material/Edit';
|
||||||
import Favorite from '@mui/icons-material/Favorite';
|
import Favorite from '@mui/icons-material/Favorite';
|
||||||
import Home from '@mui/icons-material/Home';
|
import Home from '@mui/icons-material/Home';
|
||||||
import Link from '@mui/icons-material/Link';
|
|
||||||
import Divider from '@mui/material/Divider';
|
import Divider from '@mui/material/Divider';
|
||||||
|
import Icon from '@mui/material/Icon';
|
||||||
import List from '@mui/material/List';
|
import List from '@mui/material/List';
|
||||||
import ListItem from '@mui/material/ListItem';
|
import ListItem from '@mui/material/ListItem';
|
||||||
import ListItemButton from '@mui/material/ListItemButton';
|
import ListItemButton from '@mui/material/ListItemButton';
|
||||||
|
@ -98,8 +98,7 @@ const MainDrawerContent = () => {
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
{/* TODO: Support custom icons */}
|
<Icon>{menuLink.icon ?? 'link'}</Icon>
|
||||||
<Link />
|
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText primary={menuLink.name} />
|
<ListItemText primary={menuLink.name} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue