mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-11 05:36:10 -05:00
fixed navitem highlight bug
This commit is contained in:
@@ -17,7 +17,7 @@ const NavItem: React.FC<NavItemProps> = ({ to, icon, title }) => {
|
||||
|
||||
const location = useLocation()
|
||||
const isActive =
|
||||
location.pathname.indexOf(to) !== -1 && location.pathname !== "/"
|
||||
location.pathname.indexOf("/" + to) !== -1 && location.pathname !== "/"
|
||||
|
||||
return (
|
||||
<ListItem>
|
||||
|
||||
Reference in New Issue
Block a user