summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-12 17:22:46 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-12 17:22:46 +0700
commit0eedef242e76673e6882ec11b87a9371d6ec5164 (patch)
tree4a66099e9cf4923ba5cb24d4a06829d9088ef3a5
parent7cf105a01a814c5f76dd6b407df284a44026cabf (diff)
<Miqdad> mobile
-rw-r--r--src-migrate/modules/product-detail/components/PriceAction.tsx7
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx2
2 files changed, 6 insertions, 3 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>
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx
index c8c03300..76fa8298 100644
--- a/src-migrate/modules/product-detail/components/ProductDetail.tsx
+++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx
@@ -252,7 +252,7 @@ const ProductDetail = ({ product }: Props) => {
{/* ===== Kolom kanan: info ===== */}
<div className='md:w-8/12 px-4 md:pl-6'>
{!hasPrice && (
- <div className='bg-red-50 py-2 rounded-lg border border-red-500 flex gap-2 items-center mb-4'>
+ <div className='bg-red-50 p-2 py-1.5 rounded-lg border border-red-500 flex gap-1 items-center '>
<AlertTriangle
size={18}
className='text-red-600 shrink-0 mx-2'