Skip to content

Commit

Permalink
refactor: DashboardMenuでListItemIconを使うようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Apr 13, 2024
1 parent cf126ec commit dff5be9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/(authed)/admin/_components/DashboardMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
'use client';

import { Star } from '@mui/icons-material';
import { styled, Typography, MenuList, MenuItem } from '@mui/material';
import {
styled,
Typography,
MenuList,
MenuItem,
ListItemIcon,
} from '@mui/material';
import Drawer from '@mui/material/Drawer';

const Demo = styled('div')(({ theme }) => ({
Expand All @@ -28,7 +34,9 @@ const DashboardMenu = () => {
{['Dashboard', 'Forms', 'Announcements'].map((value) => {
return (
<MenuItem key={value}>
<Star />
<ListItemIcon>
<Star />
</ListItemIcon>
{value}
</MenuItem>
);
Expand Down

0 comments on commit dff5be9

Please sign in to comment.