summaryrefslogtreecommitdiff
path: root/src/lib/category
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-03-28 09:22:13 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-03-28 09:22:13 +0700
commit8ca9069251873e87338f1c7f581b418bebb11e9a (patch)
tree12e651361cb667c768961932a99d0a253ffee4e7 /src/lib/category
parentfd2a6bcf2f17a6dbcbfb3ca04ebf2c4d66d43437 (diff)
parenta040418bdddd5fcaf8a8d67e0a66ea92fd16ee24 (diff)
Merge branch 'master' of https://bitbucket.org/altafixco/next-indoteknik
Diffstat (limited to 'src/lib/category')
-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}
>