Commit 0a54e96f by Arjun Jhukal

updated the new changes related to the propell

parent 7214ba54
......@@ -3,14 +3,14 @@
import DashboardLayout from '@/components/layouts/DashboardLayout';
import AgeVerificationModal from '@/components/organism/dialog';
import { useSearchParams } from 'next/navigation';
import React from 'react';
import React, { Suspense } from 'react';
export default function DashboardRootLayout({ children }: { children: React.ReactNode }) {
function LayoutContent({ children }: { children: React.ReactNode }) {
const searchParams = useSearchParams();
const visitorId = searchParams.get("visitor_id");
localStorage.setItem("visitor_id", visitorId || "");
return (
<DashboardLayout>
{children}
......@@ -18,3 +18,12 @@ export default function DashboardRootLayout({ children }: { children: React.Reac
</DashboardLayout>
)
}
export default function DashboardRootLayout({ children }: { children: React.ReactNode }) {
return (
<Suspense fallback={<div>Loading...</div>}>
<LayoutContent>{children}</LayoutContent>
</Suspense>
)
}
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