diff --git a/app/content/[slug]/page.tsx b/app/content/[slug]/page.tsx index e28dd457c..9db268495 100644 --- a/app/content/[slug]/page.tsx +++ b/app/content/[slug]/page.tsx @@ -30,11 +30,18 @@ async function getContent(slug: string) { return allContent[slug] || null; } -export default async function ContentPage({ params }: { params: { slug: string } }) { +// Define an interface for the page's props +interface ContentPageProps { + params: { + slug: string; + }; + // searchParams?: { [key: string]: string | string[] | undefined }; // Optional, if needed +} + +export default async function ContentPage({ params }: ContentPageProps) { const content = await getContent(params.slug); if (!content) { - // Handle case where content is not found, e.g., by returning a 404 or a specific message return
Content not found for {params.slug}
; } diff --git a/components/layout/navbar/index.tsx b/components/layout/navbar/index.tsx index 6c7f3dead..b7021f227 100644 --- a/components/layout/navbar/index.tsx +++ b/components/layout/navbar/index.tsx @@ -46,6 +46,40 @@ export async function Navbar() { ))} ) : null} + {/* Static links for newly added pages */} +
}> @@ -53,6 +87,8 @@ export async function Navbar() {
+ {/* The existing CartModal is likely the cart icon and flyout. We keep this. */} + {/* The "Cart Page" link above is for a dedicated cart page view. */}