diff --git a/.gitignore b/.gitignore index 8f322f0..100bd8f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ /node_modules /.pnp .pnp.js - +.env # testing /coverage diff --git a/src/app/container_page.tsx b/src/app/container_page.tsx index 303fab9..158a328 100644 --- a/src/app/container_page.tsx +++ b/src/app/container_page.tsx @@ -1,5 +1,8 @@ +'use client' import Footer from '~/components/footer/Footer'; import NavBar from '~/components/navBar/navBar'; +import Categories from '~/components/categories/categories'; +import { usePathname } from 'next/navigation'; type ContainerPageProps = { children: React.ReactNode; @@ -14,11 +17,15 @@ export function ContainerPage({ footer = true, children, }: ContainerPageProps) { + const pathname = usePathname(); return ( <> {typeof nav === 'boolean' && nav ? : nav} {header && header} -
{children}
+
+ {pathname !== '/' && } + {children} +
{footer &&