From 444bc1a7ab49be8edbc17989e7f57fac7d7ed3c2 Mon Sep 17 00:00:00 2001 From: Siddharth Rohan Date: Wed, 8 Jan 2025 11:39:57 +0530 Subject: [PATCH] ReAdded the MenuItemStyle --- src/components/Navbar.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index fc4af3b..26096f4 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -88,6 +88,17 @@ function Navbar({ scrollToExplore }: { scrollToExplore: any }) { ); + const menuItemStyle = (key: string, isLast: boolean) => ({ + display: "flex", + alignItems: "center", + padding: screens.md ? "0 20px" : "0", + backgroundColor: + hovered === key ? "rgba(255, 255, 255, 0.1)" : "transparent", + height: "65px", + borderRight: + screens.md && !isLast ? "1.5px solid rgba(255, 255, 255, 0.1)" : "none", + }); + const isLearnPage = location.pathname.startsWith("/learn"); return (