Refactor <Prose> component (#1352)

This commit is contained in:
조계진
2024-10-16 12:28:58 +09:00
committed by GitHub
parent cb99695b72
commit b7e9e1c7e3
2 changed files with 3 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ export default async function Page(props: { params: Promise<{ page: string }> })
return (
<>
<h1 className="mb-8 text-5xl font-bold">{page.title}</h1>
<Prose className="mb-8" html={page.body as string} />
<Prose className="mb-8" html={page.body} />
<p className="text-sm italic">
{`This document was last updated on ${new Intl.DateTimeFormat(undefined, {
year: 'numeric',