summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-06-14 15:15:30 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-06-14 15:15:30 +0700
commite3e3fe8d87130fcd1872046de0160272b6ea9763 (patch)
treeb371bb6c94f48fa60c4e22a7fb5dfd387dedd7a7 /src
parentef2d3ad6759db8535c04d986f4bc43f01da6ccd8 (diff)
<iman> update promotion-program
Diffstat (limited to 'src')
-rw-r--r--src/api/bannerApi.js3
-rw-r--r--src/lib/product/components/ProductSearch.jsx2
-rw-r--r--src/pages/shop/promo/index.tsx4
3 files changed, 6 insertions, 3 deletions
diff --git a/src/api/bannerApi.js b/src/api/bannerApi.js
index 8bae131d..431225a5 100644
--- a/src/api/bannerApi.js
+++ b/src/api/bannerApi.js
@@ -3,3 +3,6 @@ import odooApi from '@/core/api/odooApi'
export const bannerApi = ({ type }) => {
return async () => await odooApi('GET', `/api/v1/banner?type=${type}`)
}
+
+// ubah ke SOLR
+
diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index 08b64c13..ec0077c2 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -130,6 +130,7 @@ const ProductSearch = ({
brands.push({ brand, qty });
}
}
+ console.log("daftar brand",brands)
const categories = [];
for (
@@ -144,6 +145,7 @@ const ProductSearch = ({
categories.push({ name, qty });
}
}
+ console.log("daftar kategori",categories)
const orderOptions = [
{ value: 'price-asc', label: 'Harga Terendah' },
diff --git a/src/pages/shop/promo/index.tsx b/src/pages/shop/promo/index.tsx
index 6f5134a3..89e88e29 100644
--- a/src/pages/shop/promo/index.tsx
+++ b/src/pages/shop/promo/index.tsx
@@ -101,9 +101,7 @@ export default function Promo() {
}
console.log("data yg dikirim ke ProductPromoCard", promoData)
- function capitalizeFirstLetter(string) {
- return string.charAt(0).toUpperCase() + string.slice(1);
- }
+
useEffect(() => {
const handleScroll = () => {