We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f7d57 commit 1bb805cCopy full SHA for 1bb805c
src/components/Layout.tsx
@@ -30,7 +30,7 @@ export default function Layout() {
30
<List>
31
{navItems.map((item) => (
32
<ListItem key={item.text} disablePadding>
33
- <ListItemButton component={Link} to={item.path} selected={location.pathname === item.path}>
+ <ListItemButton component={Link} to={item.path} selected={location.pathname === item.path} replace>
34
<ListItemIcon>{item.icon}</ListItemIcon>
35
<ListItemText primary={item.text} />
36
</ListItemButton>
@@ -55,6 +55,7 @@ export default function Layout() {
55
icon={item.icon}
56
component={Link}
57
to={item.path}
58
+ replace
59
/>
60
))}
61
</BottomNavigation>
0 commit comments