diff --git a/src/app/FilterProviderWrapper.tsx b/src/app/FilterProviderWrapper.tsx new file mode 100644 index 00000000..4589fe65 --- /dev/null +++ b/src/app/FilterProviderWrapper.tsx @@ -0,0 +1,11 @@ +"use client"; + +import { FilterProvider } from "@/context/FilterContext"; + +export const FilterProviderWrapper = ({ + children, +}: { + children: React.ReactNode; +}) => { + return {children} +} \ No newline at end of file diff --git a/src/app/find-properties/[[...opa_id]]/page.tsx b/src/app/find-properties/[[...opa_id]]/page.tsx index 7aad81ac..ece48965 100644 --- a/src/app/find-properties/[[...opa_id]]/page.tsx +++ b/src/app/find-properties/[[...opa_id]]/page.tsx @@ -208,7 +208,6 @@ const MapPage = ({ params }: MapPageProps) => { }, [currentView, selectedProperty, shouldFilterSavedProperties]); return ( - @@ -321,7 +320,6 @@ const MapPage = ({ params }: MapPageProps) => { - ); }; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2860d06a..8a4e65f0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import "./globals.css"; import { CookieProviderWrapper } from "./CookieProviderWrapper"; +import { FilterProviderWrapper } from "./FilterProviderWrapper"; export const metadata: Metadata = { title: { @@ -29,7 +30,11 @@ export default function RootLayout({ > Skip to main content - {children} + + + {children} + +