chore: update prettier
This commit is contained in:
parent
057294a985
commit
12ed6cf0c2
21 changed files with 93 additions and 125 deletions
|
@ -30,7 +30,7 @@ export default function Home() {
|
|||
content_id: content_id,
|
||||
...contentMap.posts[content_id],
|
||||
}}
|
||||
/>
|
||||
/>,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ interface Props {
|
|||
export default function Toc({ data }: Props) {
|
||||
const [isTocOpened, setIsTocOpened] = useState<boolean>(
|
||||
typeof window !== "undefined" &&
|
||||
localStorage.getItem("isTocOpened") === "true"
|
||||
localStorage.getItem("isTocOpened") === "true",
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
@ -53,7 +53,7 @@ export function parsePageData(
|
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
fetched_content: any,
|
||||
pageType: PageType,
|
||||
content_id: string
|
||||
content_id: string,
|
||||
): PageData {
|
||||
// page date to be saved as a react state
|
||||
const pageData: PageData = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue