summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/PriceAction.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/PriceAction.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index 510dd6a9..d73ab5f6 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -264,11 +264,11 @@ const PriceAction = ({ product }: Props) => {
)}
</div>
- {qtyPickUp > 0 && (
+ {/* {qtyPickUp > 0 && (
<div className='text-[12px] mt-1 text-red-500 italic'>
* {qtyPickUp} barang bisa di pickup
</div>
- )}
+ )} */}
</div>
{/* Kanan: hanya qty, rata kanan */}
@@ -283,6 +283,7 @@ const PriceAction = ({ product }: Props) => {
)
}
aria-label='Kurangi'
+ disabled={!hasPrice}
>
<span className='text-2xl leading-none'>–</span>
</button>
@@ -297,6 +298,7 @@ const PriceAction = ({ product }: Props) => {
[appearance:textfield]
[&::-webkit-outer-spin-button]:appearance-none
[&::-webkit-inner-spin-button]:appearance-none'
+ disabled={!hasPrice}
/>
<button
@@ -306,6 +308,7 @@ const PriceAction = ({ product }: Props) => {
setQuantityInput(String(Number(quantityInput) + 1))
}
aria-label='Tambah'
+ disabled={!hasPrice}
>
<span className='text-2xl leading-none'>+</span>
</button>