chore: update prettier

This commit is contained in:
Kim, Jimin 2024-02-28 23:34:49 +09:00
parent 057294a985
commit 12ed6cf0c2
Signed by: pomp
GPG key ID: 77DAC7BB5CA8C7AA
21 changed files with 93 additions and 125 deletions

View file

@ -30,7 +30,7 @@ export default function Home() {
content_id: content_id,
...contentMap.posts[content_id],
}}
/>
/>,
)
}
}

View file

@ -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(() => {

View file

@ -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 = {