's'
This commit is contained in:
@@ -63,6 +63,9 @@ export default function NavbarComponent() {
|
||||
const isActive = useCallback((href: string) => {
|
||||
if (href.startsWith("/#")) return false;
|
||||
if (href === "/") return pathname === "/";
|
||||
if (href === "/digital") {
|
||||
return /^\/(zh|en)\/digital(?:\/|$)/.test(pathname);
|
||||
}
|
||||
return pathname.startsWith(href);
|
||||
}, [pathname]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user