From d4c199e0adcba067c44c2e475ec89cafa075c9c7 Mon Sep 17 00:00:00 2001 From: r9au Date: Fri, 4 Apr 2025 01:21:30 +0530 Subject: [PATCH] navbar updated --- src/components/Navbar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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