From 83d6d7313444f145d84715ff35174170fc908f13 Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Fri, 27 Aug 2021 15:02:40 -0400 Subject: [PATCH] Change setMobileNavOpen type --- components/OrganizedContent.tsx | 4 ++-- next-env.d.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/OrganizedContent.tsx b/components/OrganizedContent.tsx index 0023c566..c2f26627 100644 --- a/components/OrganizedContent.tsx +++ b/components/OrganizedContent.tsx @@ -97,7 +97,6 @@ export function OrganizedContent({ }`} onClick={() => setMobileNavOpen(!mobileNavOpen)} > - {/* this is copied from hamburger.svg with changed colors */} @@ -110,7 +109,7 @@ interface NavProps { link: Link; pageTitle: string; mobileNavOpen: boolean; - setMobileNavOpen: React.Dispatch>; + setMobileNavOpen: (mobileNavOpen: boolean) => void; } function Nav({ @@ -342,6 +341,7 @@ function useBurger(componentIsVisible: boolean): boolean { return burgerVisible; } +// Inlining this svg because we want to fill in colors using css variables function Burger() { return ( -/// -/// +/// +/// +///