From b7e9e1c7e33966ffbcdb18bdcc29e5a529778033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EA=B3=84=EC=A7=84?= Date: Wed, 16 Oct 2024 12:28:58 +0900 Subject: [PATCH] Refactor component (#1352) --- app/[page]/page.tsx | 2 +- components/prose.tsx | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/[page]/page.tsx b/app/[page]/page.tsx index 60bcc892c..aa0c15603 100644 --- a/app/[page]/page.tsx +++ b/app/[page]/page.tsx @@ -32,7 +32,7 @@ export default async function Page(props: { params: Promise<{ page: string }> }) return ( <>

{page.title}

- +

{`This document was last updated on ${new Intl.DateTimeFormat(undefined, { year: 'numeric', diff --git a/components/prose.tsx b/components/prose.tsx index f910d2296..0cf460f8b 100644 --- a/components/prose.tsx +++ b/components/prose.tsx @@ -1,19 +1,13 @@ import clsx from 'clsx'; -import type { FunctionComponent } from 'react'; -interface TextProps { - html: string; - className?: string; -} - -const Prose: FunctionComponent = ({ html, className }) => { +const Prose = ({ html, className }: { html: string; className?: string }) => { return (

); };