From 49ca4f3b90b57d8b389266c888f1169ad9b81c05 Mon Sep 17 00:00:00 2001 From: KimGyeongwon Date: Sat, 15 Feb 2025 15:42:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B5=90=EC=9C=A1=20=EC=98=88=EC=95=BD?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=20searchParams=20=ED=83=80?= =?UTF-8?q?=EC=9E=85=20=EB=B0=8F=20=EB=B9=84=EB=8F=99=EA=B8=B0=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(education)/education/reserve/page.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/app/(education)/education/reserve/page.tsx b/src/app/(education)/education/reserve/page.tsx index 23926d7..65b6f99 100644 --- a/src/app/(education)/education/reserve/page.tsx +++ b/src/app/(education)/education/reserve/page.tsx @@ -11,16 +11,12 @@ const courseQuery = `*[_type == "course" && _id == $id][0] { location }`; -interface PageProps { - searchParams: { - courseId: string; - }; -} - export default async function EducationReservePage({ searchParams, -}: PageProps) { - const { courseId } = searchParams; +}: { + searchParams: Promise<{ courseId: string }>; +}) { + const { courseId } = await searchParams; const course = await client.fetch( courseQuery,