From 288216ba50eb81c2fc92b00d6e0e46e855b6a7ba Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Tue, 12 Jul 2022 12:41:25 -0700 Subject: [PATCH] improve responsive links --- src/components/Nav.js | 49 +++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/src/components/Nav.js b/src/components/Nav.js index a47bc32..ff16e9d 100644 --- a/src/components/Nav.js +++ b/src/components/Nav.js @@ -3,21 +3,19 @@ import classnames from "classnames"; import { Link } from "gatsby"; import useDimensions from "react-cool-dimensions"; -import ShowMenu from "@spectrum-icons/workflow/ShowMenu"; - -const getNavClasses = (isClient) => - classnames( - "hover:underline mx-2 md:mx-3", - isClient ? "text-vibrant-light" : "text-gray-200" - ); +import Menu from "@spectrum-icons/workflow/Menu"; const Nav = ({ isClient, internalLinks, className }) => { const { observe, currentBreakpoint } = useDimensions({ - breakpoints: { XS: 0, LG: 670 }, + breakpoints: { XS: 0, LG: 730 }, updateOnBreakpointChange: true, }); const [linksMenu, setLinksMenu] = useState(false); + const navClasses = classnames( + "hover:underline mx-2 md:mx-3", + isClient ? "text-vibrant-light" : "text-gray-200" + ); return (