From 7ed2913450713655d2e962846d795dc6b4091de4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 27 Mar 2023 15:17:59 +0700
Subject: cart

---
 src/lib/category/components/Category.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/lib/category/components/Category.jsx')

diff --git a/src/lib/category/components/Category.jsx b/src/lib/category/components/Category.jsx
index 5ba45cc7..9f34362c 100644
--- a/src/lib/category/components/Category.jsx
+++ b/src/lib/category/components/Category.jsx
@@ -32,7 +32,7 @@ const Category = () => {
         {categories.map((category) => (
           <div key={category.id}>
             <Link
-              href='/'
+              href={`/shop/search?category=${category.name}`}
               className='category-mega-box__parent'
             >
               {category.name}
@@ -42,7 +42,7 @@ const Category = () => {
                 {category.childs.map((child1Category) => (
                   <div key={child1Category.id}>
                     <Link
-                      href='/'
+                      href={`/shop/search?category=${child1Category.name}`}
                       className='category-mega-box__child-one mb-4'
                     >
                       {child1Category.name}
@@ -50,7 +50,7 @@ const Category = () => {
                     <div className='flex flex-col gap-y-3'>
                       {child1Category.childs.map((child2Category) => (
                         <Link
-                          href='/'
+                          href={`/shop/search?category=${child2Category.name}`}
                           className='category-mega-box__child-two'
                           key={child2Category.id}
                         >
-- 
cgit v1.2.3

