From 2d91a5741f182084f5bf986b222983f9dd028289 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 23 Sep 2024 23:22:51 +0530 Subject: [PATCH] Categories working --- src/components/category-slider.tsx | 35 ++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/category-slider.tsx b/src/components/category-slider.tsx index 379aa35..d4c9537 100644 --- a/src/components/category-slider.tsx +++ b/src/components/category-slider.tsx @@ -15,27 +15,30 @@ export function ChocolateCategories() { const [currentImage, setCurrentImage] = useState(categories[0].image); return ( -
- {/* Left Side: Categories */} - +
+
+
    + {categories.map((category) => ( +
  • setCurrentImage(category.image)} + className='hover:text-[#c19a6b] cursor-pointer' + > + {category.name} +
  • + ))} +
+
{/* Right Side: Image */} -
+
Chocolate Category