diff --git a/assets/src/components/nav/bottomNavMobile.tsx b/assets/src/components/nav/bottomNavMobile.tsx index ee655f2d0..69a3732ec 100644 --- a/assets/src/components/nav/bottomNavMobile.tsx +++ b/assets/src/components/nav/bottomNavMobile.tsx @@ -1,9 +1,26 @@ import React from "react" -import { LadderIcon, MapIcon, SwingIcon } from "../../helpers/icon" +import { SwingIcon } from "../../helpers/icon" import { NavLink } from "react-router-dom" import { tagManagerEvent } from "../../helpers/googleTagManager" -import { mapModeForUser } from "../../util/mapMode" import { fullStoryEvent } from "../../helpers/fullStory" +import { LinkData, getNavLinkData } from "../../navLinkData" + +interface BottomNavLinkProps { + linkData: LinkData +} + +const BottomNavLink = ({ linkData }: BottomNavLinkProps) => ( + + "c-bottom-nav-mobile__link" + + (isActive ? " c-bottom-nav-mobile__link--active" : "") + } + title={linkData.title} + to={linkData.path} + > + + +) interface Props { mobileMenuIsOpen: boolean @@ -14,7 +31,8 @@ const BottomNavMobile: React.FC = ({ mobileMenuIsOpen, openSwingsView, }) => { - const mapMode = mapModeForUser() + const navLinkData = getNavLinkData() + return (
= ({ } >