From d3dd8445ff0bda91fcb4176bd2aa58f8e9bb158d Mon Sep 17 00:00:00 2001 From: Telkens Date: Mon, 2 Oct 2023 20:05:29 -0500 Subject: [PATCH 1/2] Added categories section in the navbar --- .gitignore | 2 +- src/app/container_page.tsx | 6 +++++- src/app/layout.tsx | 6 +----- src/app/products/page.tsx | 1 - src/components/categories/categories.tsx | 17 +++++++++++++++++ src/components/navBar/navBar.tsx | 6 +++--- src/types/icons.d.ts | 2 +- 7 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 src/components/categories/categories.tsx 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..f4e222e 100644 --- a/src/app/container_page.tsx +++ b/src/app/container_page.tsx @@ -1,5 +1,6 @@ import Footer from '~/components/footer/Footer'; import NavBar from '~/components/navBar/navBar'; +import Categories from '~/components/categories/categories'; type ContainerPageProps = { children: React.ReactNode; @@ -18,7 +19,10 @@ export function ContainerPage({ <> {typeof nav === 'boolean' && nav ? : nav} {header && header} -
{children}
+
+ + {children} +
{footer &&