fix: fix nav status check in second level page
This commit is contained in:
parent
fcb28d3456
commit
0e71e073fc
@ -8,7 +8,7 @@ export const NavItem: React.FC<{
|
||||
}> = React.memo((props) => {
|
||||
const location = useLocation();
|
||||
|
||||
const isCurrent = location.pathname === props.to;
|
||||
const isCurrent = location.pathname.startsWith(props.to);
|
||||
|
||||
return (
|
||||
<Link to={props.to}>
|
||||
|
Loading…
Reference in New Issue
Block a user