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,