Skip to content

Commit

Permalink
use router path as string
Browse files Browse the repository at this point in the history
  • Loading branch information
suren-atoyan committed Oct 29, 2022
1 parent 00918da commit c2a1f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Sidebar() {
.filter((route) => route.title)
.map(({ path, title, icon: Icon }) => (
<ListItem sx={{ p: 0 }} key={path}>
<ListItemButton onClick={sidebarActions.close} component={Link} to={path}>
<ListItemButton component={Link} to={path as string} onClick={sidebarActions.close}>
<ListItemIcon>{Icon ? <Icon /> : <DefaultIcon />}</ListItemIcon>
<ListItemText>{title}</ListItemText>
</ListItemButton>
Expand Down

0 comments on commit c2a1f61

Please sign in to comment.