diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 35fe9fe..ad0306f 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -21,7 +21,7 @@ interface NavbarProps { function Navbar({ scrollToFooter }: NavbarProps) { const [hovered, setHovered] = useState< - null | "home" | "explore" | "help" | "github" | "join" + null | "home" | "explore" | "help" | "github" | "join" | "Learn" >(null); const screens = useBreakpoint(); const location = useLocation(); @@ -270,6 +270,7 @@ function Navbar({ scrollToFooter }: NavbarProps) { setHovered("Learn")} + onMouseLeave={()=>setHovered(null)} > Learn