From ade64c43f23d97888fabc49f0795d731c6f94614 Mon Sep 17 00:00:00 2001 From: Aarush Gupta Date: Sat, 6 Jun 2026 02:43:12 +0530 Subject: [PATCH] fix: wrap dynamic components in Suspense to fix build and add My Bookings to Navbar --- app/layout.tsx | 65 ++++++++++++++++++++++++++++--------------- components/Navbar.tsx | 10 +++++++ 2 files changed, 52 insertions(+), 23 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index c0133c8..7513992 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,6 +5,7 @@ import LightRays from "../components/LightRays"; import Navbar from "../components/Navbar"; import { PostHogProvider } from "./providers"; import { Toaster } from "sonner"; +import { Suspense } from "react"; const SchibstedGrotesk = Schibsted_Grotesk({ variable: "--font-schibsted-grotesk", @@ -32,29 +33,47 @@ export default function RootLayout({ className={`${SchibstedGrotesk.variable} ${MartianMono.variable} antialiased`} > - - -
- -
-
- {children} -
-
+ + + + + + }> + + +
+ +
+
+ {children} +
+
+
); diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 8b7c77c..7b022bb 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -57,6 +57,16 @@ const navLinkClass = (href: string) => Create Event + +
  • + + My Bookings + +