Change setMobileNavOpen type
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Aditya Thakral 2021-08-27 15:02:40 -04:00
parent 245b1a6378
commit 83d6d73134
2 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,6 @@ export function OrganizedContent({
}`} }`}
onClick={() => setMobileNavOpen(!mobileNavOpen)} onClick={() => setMobileNavOpen(!mobileNavOpen)}
> >
{/* this is copied from hamburger.svg with changed colors */}
<Burger /> <Burger />
</button> </button>
</div> </div>
@ -110,7 +109,7 @@ interface NavProps {
link: Link; link: Link;
pageTitle: string; pageTitle: string;
mobileNavOpen: boolean; mobileNavOpen: boolean;
setMobileNavOpen: React.Dispatch<React.SetStateAction<boolean>>; setMobileNavOpen: (mobileNavOpen: boolean) => void;
} }
function Nav({ function Nav({
@ -342,6 +341,7 @@ function useBurger(componentIsVisible: boolean): boolean {
return burgerVisible; return burgerVisible;
} }
// Inlining this svg because we want to fill in colors using css variables
function Burger() { function Burger() {
return ( return (
<svg <svg