summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-01 14:51:18 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-01 14:51:18 +0700
commit39b17194cfda734ca178449ddc03b0daa4175f39 (patch)
tree3a2327607bc21468d3d7afc95d016a3eddba851e /src
parent9b8e9994d7bc765e8ccfd675462d8f8150b41d8b (diff)
no message
Diffstat (limited to 'src')
-rw-r--r--src/pages/index.js7
-rw-r--r--src/styles/globals.css1
2 files changed, 3 insertions, 5 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,
diff --git a/src/styles/globals.css b/src/styles/globals.css
index 6dbd23b2..4e593536 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -214,7 +214,6 @@ html, body {
border
border-gray_r-3
shadow-md
- shadow-gray_r-8/30
bg-white
rounded
relative