Commit ab3d504d by Arjun Jhukal

wrapped the search params inside suspense bounday

parent 8e9e2c96
......@@ -17,10 +17,12 @@ function LayoutContent({ children }: { children: React.ReactNode }) {
}, [visitorId]);
return (
<DashboardLayout>
{children}
<AgeVerificationModal />
</DashboardLayout>
<Suspense fallback={<div>Loading...</div>}>
<DashboardLayout>
{children}
<AgeVerificationModal />
</DashboardLayout>
</Suspense>
)
}
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