Linting fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4fd4fd6987
commit
95cc1c10a6
|
@ -1,3 +1,4 @@
|
|||
import NextLink from "next/link";
|
||||
import React, {
|
||||
ReactNode,
|
||||
ComponentType,
|
||||
|
@ -6,15 +7,8 @@ import React, {
|
|||
useEffect,
|
||||
useCallback,
|
||||
} from "react";
|
||||
import styles from "./OrganizedContent.module.css";
|
||||
import NextLink from "next/link";
|
||||
|
||||
export interface LinkProps { //todo check if we need this
|
||||
className?: string;
|
||||
id: string;
|
||||
children: ReactNode;
|
||||
setMobileNavOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
}
|
||||
import styles from "./OrganizedContent.module.css";
|
||||
|
||||
type Link = ComponentType<LinkProps>;
|
||||
|
||||
|
@ -139,12 +133,13 @@ function Nav({
|
|||
}
|
||||
|
||||
return (
|
||||
<div onClick={() => {setMobileNavOpen(false)}}>
|
||||
<Link
|
||||
className={classNames.join(" ")}
|
||||
id={section.id}
|
||||
<div
|
||||
onClick={() => {
|
||||
setMobileNavOpen(false);
|
||||
}}
|
||||
key={section.id}
|
||||
>
|
||||
<Link className={classNames.join(" ")} id={section.id}>
|
||||
<span className={styles.marker} />
|
||||
<div>{section.title}</div>
|
||||
</Link>
|
||||
|
@ -374,5 +369,5 @@ function Burger() {
|
|||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
);
|
||||
}
|
|
@ -238,7 +238,12 @@ export function OrganizedContentDemo() {
|
|||
)!.Content;
|
||||
|
||||
return (
|
||||
<OrganizedContent sections={sections} id={id} link={FakeLink} pageTitle="Playground">
|
||||
<OrganizedContent
|
||||
sections={sections}
|
||||
id={id}
|
||||
link={FakeLink}
|
||||
pageTitle="Playground"
|
||||
>
|
||||
<Content />
|
||||
</OrganizedContent>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue