We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6736c72 commit 7155d01Copy full SHA for 7155d01
1 file changed
src/components/ui/NavigationBar.tsx
@@ -63,6 +63,7 @@ export const HoverNavigation = ({
63
}, [items]);
64
65
useEffect(() => {
66
+ // hamburger stuff
67
const handleClickOutside = (event: MouseEvent) => {
68
if (
69
hamburgerOpen &&
@@ -75,6 +76,13 @@ export const HoverNavigation = ({
75
76
}
77
};
78
79
+ // set hover index on projects when on "/projects"
80
+ const splittedURL = window.location.href.split("/");
81
+
82
+ if (splittedURL[splittedURL.length - 1]) {
83
+ setHoveredIndex(2);
84
+ }
85
86
document.addEventListener("mousedown", handleClickOutside);
87
return () => {
88
document.removeEventListener("mousedown", handleClickOutside);
0 commit comments