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 (
<DashboardLayout> <Suspense fallback={<div>Loading...</div>}>
{children} <DashboardLayout>
<AgeVerificationModal /> {children}
</DashboardLayout> <AgeVerificationModal />
</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