diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index d8121f7b..ff87bf70 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -10,13 +10,7 @@ const menuItems = { missions: "https://example.com/missions" } -type PageProps = { - params: { - section: string; - }; -}; - -export default async function SectionPage({ params }: PageProps) { +export default async function SectionPage({ params }: { params: { section: string } }) { const section = params?.section ? String(params.section) : ''; const iframeUrl = menuItems[section as keyof typeof menuItems];