summaryrefslogtreecommitdiff
path: root/src/lib/product
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-30 09:53:35 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-30 09:53:35 +0700
commit593c508bb87451a985a5aec7e9d7bde45b18074b (patch)
tree66b7c34b56b355cefd004ecb5bd6a264c1f9cddd /src/lib/product
parent7f060ad3f3d938a462292721b9c54d1cb9140ad3 (diff)
<iman> update category lob
Diffstat (limited to 'src/lib/product')
-rw-r--r--src/lib/product/components/LobSectionCategory.jsx1
-rw-r--r--src/lib/product/components/ProductSearch.jsx9
2 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/product/components/LobSectionCategory.jsx b/src/lib/product/components/LobSectionCategory.jsx
index 34a09e46..03d6e8c0 100644
--- a/src/lib/product/components/LobSectionCategory.jsx
+++ b/src/lib/product/components/LobSectionCategory.jsx
@@ -22,7 +22,6 @@ const LobSectionCategory = ({ categories }) => {
const handleToggleCategories = () => {
setIsOpenCategory(!isOpenCategory);
};
- console.log("categories",categories[0]?.categoryIds)
const displayedCategories = categories[0]?.categoryIds;
diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index 7ab6b8af..d4c5a308 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -379,7 +379,6 @@ const ProductSearch = ({
};
const isNotReadyStockPage = router.asPath !== '/shop/search?orderBy=stock';
-
return (
<>
<MobileView>
@@ -481,8 +480,8 @@ const ProductSearch = ({
<Pagination
pageCount={pageCount}
currentPage={parseInt(page)}
- // url={`${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
- url={prefixUrl.includes('category') || prefixUrl.includes('lob')? `${prefixUrl}?${toQuery(_.omit(finalQuery, ['page']))}` : `${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
+ url={`${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
+ // url={prefixUrl.includes('category') || prefixUrl.includes('lob')? `${prefixUrl}?${toQuery(_.omit(finalQuery, ['page']))}` : `${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
className='mt-6 mb-2'
/>
@@ -671,8 +670,8 @@ const ProductSearch = ({
<Pagination
pageCount={pageCount}
currentPage={parseInt(page)}
- // url={`${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
- url={prefixUrl.includes('category') || prefixUrl.includes('lob')? `${prefixUrl}?${toQuery(_.omit(finalQuery, ['page']))}` : `${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
+ url={`${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
+ // url={prefixUrl.includes('category') || prefixUrl.includes('lob')? `${prefixUrl}?${toQuery(_.omit(finalQuery, ['page']))}` : `${prefixUrl}?${toQuery(_.omit(query, ['page']))}`}
className='!justify-end'
/>
</div>