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)}
|
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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
/// <reference types="next/types/global" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
Loading…
Reference in New Issue