Skip to content

Commit

Permalink
ReAdded the MenuItemStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
isidrohan committed Jan 8, 2025
1 parent 8d368c6 commit 444bc1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ function Navbar({ scrollToExplore }: { scrollToExplore: any }) {
</Menu>
);

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 (
Expand Down

0 comments on commit 444bc1a

Please sign in to comment.