From 79d8c5fd8bab260676694a79cb8bdf4fcf76d3c5 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sun, 7 Sep 2025 10:33:08 +0700 Subject: Initial Commit --- .../product-detail/components/AddToCart.tsx | 56 ++++++++++++++-------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/src-migrate/modules/product-detail/components/AddToCart.tsx b/src-migrate/modules/product-detail/components/AddToCart.tsx index 1cb58a75..ee7cb385 100644 --- a/src-migrate/modules/product-detail/components/AddToCart.tsx +++ b/src-migrate/modules/product-detail/components/AddToCart.tsx @@ -20,6 +20,7 @@ import axios from 'axios'; import useDevice from '@/core/hooks/useDevice'; import MobileView from '@/core/components/views/MobileView'; import DesktopView from '@/core/components/views/DesktopView'; +import ProductPromoSection from '~/modules/product-promo/components/Section'; type Props = { variantId: number | null; quantity?: number; @@ -177,33 +178,34 @@ const AddToCart = ({ return (
- + + - + + { - setAddCartAlert(false); - }} + close={() => setAddCartAlert(false)} > + {/* HEADER ITEM YANG DITAMBAHKAN */}
+
{!!product.manufacture.name ? ( {product.name}

{product.code}

+ {!!product.lowest_price && product.lowest_price.price > 0 && ( <>
@@ -267,6 +271,7 @@ const AddToCart = ({ )}
+
+ + {/* === PROMO KHUSUS MOBILE (DI ATAS PRODUCT SIMILAR) === */} + +
+ +
+
+ + {/* PRODUCT SIMILAR: tetap seperti semula, muncul di mobile & desktop */}
Kamu Mungkin Juga Suka -- cgit v1.2.3