From 656b74f9d57be36390846362426c35aa1671f3b0 Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 5 May 2025 12:49:04 +0200 Subject: [PATCH] build fix --- app/[section]/page.tsx | 4 ++-- app/signin/page.tsx | 2 +- components/layout/layout-wrapper.tsx | 22 ++++++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index ff87bf70..833ce0f0 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -10,8 +10,8 @@ const menuItems = { missions: "https://example.com/missions" } -export default async function SectionPage({ params }: { params: { section: string } }) { - const section = params?.section ? String(params.section) : ''; +export default async function SectionPage({ params }: { params: Promise<{ section: string }> }) { + const { section } = await params; const iframeUrl = menuItems[section as keyof typeof menuItems]; diff --git a/app/signin/page.tsx b/app/signin/page.tsx index 52f71d51..fd48095e 100644 --- a/app/signin/page.tsx +++ b/app/signin/page.tsx @@ -50,7 +50,7 @@ export default function SignIn() {
{!isSignInPage && isAuthenticated && }