diff --git a/src/app/(content-pages)/layout.tsx b/src/app/(content-pages)/layout.tsx index 2d8834e0..97b9b5cf 100644 --- a/src/app/(content-pages)/layout.tsx +++ b/src/app/(content-pages)/layout.tsx @@ -6,7 +6,7 @@ const ContentPagesLayout = ({ children }: { children: React.ReactNode }) => { - {children} + {children} diff --git a/src/app/CookieProviderWrapper.tsx b/src/app/CookieProviderWrapper.tsx new file mode 100644 index 00000000..332c5b6b --- /dev/null +++ b/src/app/CookieProviderWrapper.tsx @@ -0,0 +1,11 @@ +"use client"; + +import { CookieProvider } from "@/context/CookieContext"; + +export const CookieProviderWrapper = ({ + children, +}: { + children: React.ReactNode; +}) => { + return {children}; +}; diff --git a/src/app/find-properties/[[...opa_id]]/layout.tsx b/src/app/find-properties/[[...opa_id]]/layout.tsx index 2f06ac1d..c8be3f11 100644 --- a/src/app/find-properties/[[...opa_id]]/layout.tsx +++ b/src/app/find-properties/[[...opa_id]]/layout.tsx @@ -1,4 +1,5 @@ import { Header, Hotjar } from "@/components"; +import CookieConsentBanner from "@/components/CookieConsentBanner"; export const metadata = { title: "Find Properties", @@ -10,6 +11,7 @@ const MapLayout = ({ children }: { children: React.ReactNode }) => { {children} + ); }; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 291e72c2..2860d06a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; import "./globals.css"; +import { CookieProviderWrapper } from "./CookieProviderWrapper"; export const metadata: Metadata = { title: { @@ -28,7 +29,7 @@ export default function RootLayout({ > Skip to main content - {children} + {children}