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)}
>
{/* this is copied from hamburger.svg with changed colors */}
<Burger />
</button>
</div>
@ -110,7 +109,7 @@ interface NavProps {
link: Link;
pageTitle: string;
mobileNavOpen: boolean;
setMobileNavOpen: React.Dispatch<React.SetStateAction<boolean>>;
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 (
<svg

6
next-env.d.ts vendored
View File

@ -1,3 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />