diff --git a/assets/css/_nav.scss b/assets/css/_nav.scss index d10014b89..4f9a61d45 100644 --- a/assets/css/_nav.scss +++ b/assets/css/_nav.scss @@ -10,16 +10,6 @@ height: 100%; } -.l-nav--medium { - display: grid; - gap: 0; - grid-template-columns: max-content minmax(0, 1fr); - grid-template-rows: minmax(0, 1fr); - grid-template-areas: "left content"; - width: 100%; - height: 100%; -} - .l-nav--narrow { display: grid; gap: 0; diff --git a/assets/src/components/nav.tsx b/assets/src/components/nav.tsx index 3609478f0..12e1e9cdd 100644 --- a/assets/src/components/nav.tsx +++ b/assets/src/components/nav.tsx @@ -1,11 +1,9 @@ -import React, { useContext } from "react" -import { toggleMobileMenu } from "../state" +import React from "react" import appData from "../appData" import useScreenSize from "../hooks/useScreenSize" import LeftNav from "./nav/leftNav" import TopNav from "./nav/topNav" import MobilePortraitNav from "./nav/mobilePortraitNav" -import { StateDispatchContext } from "../contexts/stateDispatchContext" import { usePanelStateFromStateDispatchContext } from "../hooks/usePanelState" interface Props { @@ -13,7 +11,6 @@ interface Props { } const Nav: React.FC = ({ children }) => { - const [, dispatch] = useContext(StateDispatchContext) const deviceType = useScreenSize() const { isViewOpen } = usePanelStateFromStateDispatchContext() @@ -26,46 +23,30 @@ const Nav: React.FC = ({ children }) => {
{children}
) - case "mobile_landscape_tablet_portrait": - return ( -
- -
{children}
-
- ) - case "tablet": - return ( -
-
- dispatch(toggleMobileMenu())} - defaultToCollapsed={true} - dispatcherFlag={readDispatcherFlag()} - /> -
-
{children}
-
- ) default: return (
<> -
+ -
+ diff --git a/assets/tests/components/nav.test.tsx b/assets/tests/components/nav.test.tsx index 8803f932f..1a79f0b08 100644 --- a/assets/tests/components/nav.test.tsx +++ b/assets/tests/components/nav.test.tsx @@ -68,6 +68,7 @@ describe("Nav", () => { ) expect(result.getByTitle("Route Ladders")).not.toBeVisible() + expect(result.getByTitle("Skate")).not.toBeVisible() }) test("renders tablet nav content", () => {