From d61567c690970806273e40ee4748856d65a43d14 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sat, 23 Aug 2025 10:21:38 +0700 Subject: More mobile change --- .../product-detail/components/PriceAction.tsx | 44 +++++++++++++++------- 1 file changed, 31 insertions(+), 13 deletions(-) (limited to 'src-migrate') diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index 9d45a7c3..2cdfc9a2 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -89,19 +89,37 @@ const PriceAction = ({ product }: Props) => { {!!activePrice && activePrice.price > 0 && ( <>
- {activePrice.discount_percentage > 0 && ( - <> -
- {Math.floor(activePrice.discount_percentage)}% -
-
- Rp {formatCurrency(activePrice.price_discount || 0)} -
- - )} -
- Rp {formatCurrency(activePrice.price || 0)} -
+ + {activePrice.discount_percentage > 0 && ( + <> +
+ {Math.floor(activePrice.discount_percentage)}% +
+
+ Rp {formatCurrency(activePrice.price_discount || 0)} +
+ + )} +
+ Rp {formatCurrency(activePrice.price || 0)} +
+
+ + {activePrice.discount_percentage > 0 && ( + <> +
+ {Math.floor(activePrice.discount_percentage)}% +
+ +
+ Rp {formatCurrency(activePrice.price || 0)} +
+ + )} +
+ Rp {formatCurrency(activePrice.price_discount || 0)} +
+
-- cgit v1.2.3