summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/index.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pages/index.js b/src/pages/index.js
index 5ad19bf7..5bab4ffe 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -58,7 +58,6 @@ export default function Home({ heroBanners }) {
const currentCategoryId = categoryProductIds ? categoryProductIds[categoryProducts.length] : false;
if (currentCategoryId) {
const isAdded = categoryProducts.findIndex((categoryProduct) => categoryProduct.id == currentCategoryId);
- console.log(isAdded);
if (isAdded < 0) {
const dataCategoryProducts = await apiOdoo('GET', `/api/v1/categories_homepage?id=${currentCategoryId}`);
setCategoryProducts((categoryProducts) => ([
@@ -100,13 +99,13 @@ export default function Home({ heroBanners }) {
}
</Swiper>
</div>
- <div className="my-8 px-4">
+ <div className="my-6 p-4 pt-0">
<h2 className="mb-3">Produk Populer</h2>
<ProductSlider products={popularProducts} />
</div>
- { categoryProducts?.map((categoryProduct) => (
- <div className="my-8 px-4 py-3 relative" key={categoryProduct.id}>
+ { categoryProducts?.map((categoryProduct, index) => (
+ <div className="my-6 p-4 relative" key={index}>
<ProductSlider
products={categoryProduct ? {
products: categoryProduct.products,