From d2d2806f2715a194dceac4672db39613899c9bb2 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 27 Mar 2024 20:09:50 +0800 Subject: [PATCH] fix: type error Signed-off-by: Innei --- src/app/(app)/notes/[id]/page.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/(app)/notes/[id]/page.tsx b/src/app/(app)/notes/[id]/page.tsx index 42cc9b8316..bd8b28c24e 100644 --- a/src/app/(app)/notes/[id]/page.tsx +++ b/src/app/(app)/notes/[id]/page.tsx @@ -34,11 +34,11 @@ import { NoteTitle, } from './pageExtra' -const NotePage = async function ( - props: NextPageParams<{ +export default async function Page(props: { + params: { id: string - }>, -) { + } +}) { const { data } = await getData(props.params) return ( <> @@ -93,5 +93,3 @@ const NotePage = async function ( ) } - -export default NotePage