diff --git a/src/components/layout/header.jsx b/src/components/layout/header.jsx index 05b5e9b..f6c1bb0 100644 --- a/src/components/layout/header.jsx +++ b/src/components/layout/header.jsx @@ -4,7 +4,7 @@ import { Link } from "react-router-dom"; import { useLocation } from "react-router-dom"; import { twMerge } from "tailwind-merge"; import { portalURL } from "@/constants"; -import { hallOfFame } from "@/constants/routes"; +import { HALL_OF_FAME } from "@/constants/routes"; import { useBreakpoint } from "@/hooks"; import { BashawayLeaderboard } from "@/icons"; import { AnimatedSwitcher, Button } from "@sliit-foss/bashaway-ui/components"; @@ -19,9 +19,10 @@ const Header = ({ className }) => { const [mobileNavOpen, setMobileNavOpen] = useState(false); const breakpoints = useBreakpoint(); + const { pathname } = useLocation(); - const isHallOfFame = pathname === hallOfFame; + const isHallOfFame = pathname === HALL_OF_FAME; return (
{ @@ -7,8 +8,8 @@ const AnimatedRoutes = () => { return ( - } /> - } /> + } /> + } /> } />