diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-16 16:08:43 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-16 16:08:43 +0700 |
| commit | a70fd5b6d9c7a769ac1aaa22a7d037ba3be27a05 (patch) | |
| tree | 825d6b5de089bb22003bb2a517d371dc291f1962 /src-migrate/modules/product-detail/components/PriceAction.tsx | |
| parent | d9dafa74857959974e9d379dc1a3abfbaf2af83d (diff) | |
Update improve product detail performance
Diffstat (limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')
| -rw-r--r-- | src-migrate/modules/product-detail/components/PriceAction.tsx | 10 |
1 files changed, 2 insertions, 8 deletions
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 ( <div className='block md:sticky top-[150px] bg-white py-0 md:py-6 z-10'> - {product.qty_sold > 0 && ( - <div className={style['secondary-text']}> - {formatToShortText(product.qty_sold)} Terjual - </div> - )} - <div className='h-2' /> - {!!activePrice && activePrice.price > 0 && ( <> <div className={style['main-price']}> @@ -60,7 +53,8 @@ const PriceAction = ({ product }: Props) => { <div className='h-4' /> <div className={style['action-wrapper']}> - <input type='number' value={quantityInput} onChange={(e) => setQuantityInput(e.target.value)} className={style['quantity-input']} /> + <label htmlFor="quantity" className='hidden'>Quantity</label> + <input type='number' id='quantity' value={quantityInput} onChange={(e) => setQuantityInput(e.target.value)} className={style['quantity-input']} /> <AddToCart variantId={activeVariantId} quantity={Number(quantityInput)} /> <AddToCart source='buy' variantId={activeVariantId} quantity={Number(quantityInput)} /> </div> |
