From 01c19393f0afc089faa76d03532155ea7fe0fd97 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 24 Feb 2026 08:15:39 +0000 Subject: [PATCH] Update src/app/products/page.tsx --- src/app/products/page.tsx | 103 +++++++++++++------------------------- 1 file changed, 36 insertions(+), 67 deletions(-) diff --git a/src/app/products/page.tsx b/src/app/products/page.tsx index e2065c1..9bf24c9 100644 --- a/src/app/products/page.tsx +++ b/src/app/products/page.tsx @@ -1,66 +1,31 @@ "use client"; import { Suspense } from "react"; -import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; -import ProductCatalog from "@/components/ecommerce/productCatalog/ProductCatalog"; +import ProductCardFour from '@/components/sections/product/ProductCardFour'; import { useProductCatalog } from "@/hooks/useProductCatalog"; -// Define common navigation items for sub-pages to maintain consistency -const ALL_NAV_ITEMS_SUB_PAGES = [ +const navItemsForSubPages = [ { name: "Home", id: "/" }, { name: "Products", id: "/products" }, - { name: "Shop", id: "/shop" }, - { name: "Blog", id: "/blog" }, { name: "About", id: "/#about" }, { name: "Testimonials", id: "/#testimonials" }, - { name: "FAQs", id: "/#faqs" } + { name: "FAQs", id: "/#faqs" }, + { name: "Contact", id: "/#contact" }, ]; function ProductsPageContent() { - const { - products, - isLoading, - search, - setSearch, - filters, - } = useProductCatalog({ basePath: "/products" }); + const { products, isLoading } = useProductCatalog({ basePath: "/products" }); - if (isLoading) { - return ( - - - -
-
-

Loading products...

-
-
-
-
- ); - } + const mappedProducts = products.map(p => ({ + id: p.id, + name: p.name, + price: p.price, + imageSrc: p.imageSrc, + imageAlt: p.imageAlt || p.name, + variant: p.category || 'Standard', + })); return ( - -