From a70fd5b6d9c7a769ac1aaa22a7d037ba3be27a05 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 16 Jan 2024 16:08:43 +0700 Subject: Update improve product detail performance --- src-migrate/modules/product-detail/components/PriceAction.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx') diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index cfb596fa..dd211f6f 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -28,13 +28,6 @@ const PriceAction = ({ product }: Props) => { return (
- {product.qty_sold > 0 && ( -
- {formatToShortText(product.qty_sold)} Terjual -
- )} -
- {!!activePrice && activePrice.price > 0 && ( <>
@@ -60,7 +53,8 @@ const PriceAction = ({ product }: Props) => {
- setQuantityInput(e.target.value)} className={style['quantity-input']} /> + + setQuantityInput(e.target.value)} className={style['quantity-input']} />
-- cgit v1.2.3