Commit ab3d504d by Arjun Jhukal

wrapped the search params inside suspense bounday

parent 8e9e2c96
...@@ -17,10 +17,12 @@ function LayoutContent({ children }: { children: React.ReactNode }) { ...@@ -17,10 +17,12 @@ function LayoutContent({ children }: { children: React.ReactNode }) {
}, [visitorId]); }, [visitorId]);
return ( return (
<Suspense fallback={<div>Loading...</div>}>
<DashboardLayout> <DashboardLayout>
{children} {children}
<AgeVerificationModal /> <AgeVerificationModal />
</DashboardLayout> </DashboardLayout>
</Suspense>
) )
} }
export default function DashboardRootLayout({ children }: { children: React.ReactNode }) { export default function DashboardRootLayout({ children }: { children: React.ReactNode }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment