Skip to content

Commit 1bb805c

Browse files
committed
v0.1.0
1 parent 75f7d57 commit 1bb805c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Layout() {
3030
<List>
3131
{navItems.map((item) => (
3232
<ListItem key={item.text} disablePadding>
33-
<ListItemButton component={Link} to={item.path} selected={location.pathname === item.path}>
33+
<ListItemButton component={Link} to={item.path} selected={location.pathname === item.path} replace>
3434
<ListItemIcon>{item.icon}</ListItemIcon>
3535
<ListItemText primary={item.text} />
3636
</ListItemButton>
@@ -55,6 +55,7 @@ export default function Layout() {
5555
icon={item.icon}
5656
component={Link}
5757
to={item.path}
58+
replace
5859
/>
5960
))}
6061
</BottomNavigation>

0 commit comments

Comments
 (0)