Skip to content

Commit ba905d6

Browse files
committed
Replace ListItem with ListItemButton in DashboardLayout for improved button functionality
1 parent ab33767 commit ba905d6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

planventure-client/src/layouts/DashboardLayout.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {
33
Box,
44
Drawer,
55
List,
6-
ListItem,
6+
ListItem,
7+
ListItemButton,
78
ListItemIcon,
89
ListItemText,
910
IconButton,
@@ -63,8 +64,7 @@ const DashboardLayout = ({ children }) => {
6364
<Divider />
6465
<List>
6566
{menuItems.map((item) => (
66-
<ListItem
67-
button
67+
<ListItemButton
6868
key={item.text}
6969
onClick={() => {
7070
navigate(item.path);
@@ -86,7 +86,7 @@ const DashboardLayout = ({ children }) => {
8686
{item.icon}
8787
</ListItemIcon>
8888
<ListItemText primary={item.text} />
89-
</ListItem>
89+
</ListItemButton>
9090
))}
9191
</List>
9292
</Box>

0 commit comments

Comments
 (0)