Change setMobileNavOpen type
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
245b1a6378
commit
83d6d73134
|
@ -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
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue