diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 015fd9e0..74df0cc0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,12 +7,15 @@ import { Footer } from "./components/Footer"; import { Navbar } from "./components/NavBar"; import { store } from "./redux/store"; import { Provider } from "react-redux"; +import { usePathname } from "next/navigation"; export default function RootLayout({ children, }: { children: React.ReactNode; }) { + const path = usePathname(); + useEffect(() => { initializeSubscriptions(store); return () => { @@ -31,7 +34,10 @@ export default function RootLayout({ -
+
{children}