summaryrefslogtreecommitdiff
path: root/src/lib/category/components
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-03-27 15:17:59 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-03-27 15:17:59 +0700
commit7ed2913450713655d2e962846d795dc6b4091de4 (patch)
treef3f38ecde8dfc3514d6edc66a6f41f13868918bc /src/lib/category/components
parent949a03f9a12b17fad85ecc58baad6352ba98d04d (diff)
cart
Diffstat (limited to 'src/lib/category/components')
-rw-r--r--src/lib/category/components/Category.jsx6
1 files changed, 3 insertions, 3 deletions
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}
>