summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-06 13:00:49 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-06 13:00:49 +0700
commit518f731977223d96c209e1318444e07970517e38 (patch)
tree8b35d7275df38c65c1b8ed8c26c10c2eaf55d807 /src/lib
parent86d589efc69c3d01bf85132d2b49f90a59d298fb (diff)
<Miqdad> Cr renca
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/Product/ProductDesktopVariant.jsx4
-rw-r--r--src/lib/product/components/Product/ProductMobileVariant.jsx4
-rw-r--r--src/lib/product/components/ProductCard.jsx8
3 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/product/components/Product/ProductDesktopVariant.jsx b/src/lib/product/components/Product/ProductDesktopVariant.jsx
index 24a8498a..64a6419a 100644
--- a/src/lib/product/components/Product/ProductDesktopVariant.jsx
+++ b/src/lib/product/components/Product/ProductDesktopVariant.jsx
@@ -639,14 +639,14 @@ const ProductDesktopVariant = ({
)}
</div>
</div>
- {qtyPickUp > 0 && (
+ {/* {qtyPickUp > 0 && (
<>
<div className='text-[12px] mt-1 text-red-500 italic'>
* {qtyPickUp} barang bisa di pickup
</div>
<div className='h-4' />
</>
- )}
+ )} */}
<div className='flex gap-x-3'>
<Button
onClick={() => handleAddToCart(product.id)}
diff --git a/src/lib/product/components/Product/ProductMobileVariant.jsx b/src/lib/product/components/Product/ProductMobileVariant.jsx
index acacb535..27664b4b 100644
--- a/src/lib/product/components/Product/ProductMobileVariant.jsx
+++ b/src/lib/product/components/Product/ProductMobileVariant.jsx
@@ -256,11 +256,11 @@ const ProductMobileVariant = ({ product, wishlist, toggleWishlist }) => {
{/* Stock : {activeVariant?.stock ?? 0} */}
Stock : {fakeStock}{' '}
</div>
- {qtyPickUp > 0 && (
+ {/* {qtyPickUp > 0 && (
<div className='text-[16px] mt-0.5 text-red-500 italic'>
* {qtyPickUp} barang bisa di pickup
</div>
- )}
+ )} */}
</div>
<div className='col-span-5 flex justify-end'>
<div className='inline-flex items-stretch border rounded-xl overflow-hidden'>
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 9523e937..7c1810e3 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -342,7 +342,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
{(product?.stockTotal > 0 || product?.qtySold > 0) && (
<div className='flex w-full items-center gap-x-2 flex-nowrap min-w-0'>
{product?.stockTotal > 0 && (
- <div className='badge-solid-red text-center shrink-0 whitespace-nowrap'>
+ <div className='badge-solid-red text-center shrink-0 whitespace-nowrap py-1.5'>
Ready Stock
</div>
)}
@@ -536,7 +536,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
{/* baris harga sekarang + harga coret */}
<div className='flex items-baseline gap-1 min-w-0'>
{/* harga setelah voucher */}
- <span className='inline-flex items-center gap-1 text-danger-500 font-semibold text-xs whitespace-nowrap rounded bg-red-50 px-2.5 py-0.5 border border-solid border-danger-500'>
+ <span className='inline-flex items-center gap-1 text-danger-500 font-semibold text-xs whitespace-nowrap rounded bg-red-50 px-2 py-0.5 border border-solid border-danger-500'>
<TicketIcon className='h-4 w-4 shrink-0 text-danger-500' />
{currencyFormat(finalAfterVoucher)}
</span>
@@ -596,7 +596,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
{(product?.stockTotal > 0 || product?.qtySold > 0) && (
<div className='flex w-full items-center gap-x-2 flex-nowrap min-w-0'>
{product?.stockTotal > 0 && (
- <div className='badge-solid-red text-center shrink-0 whitespace-nowrap'>
+ <div className='badge-solid-red text-center shrink-0 whitespace-nowrap py-1.5'>
Ready Stock
</div>
)}
@@ -818,7 +818,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
<div className='flex w-full items-center gap-x-1 '>
{product?.stockTotal > 0 && (
- <div className='badge-solid-red'>Ready Stock</div>
+ <div className='badge-solid-red py-1.5'>Ready Stock</div>
)}
{/* <div className='badge-gray'>{product?.stockTotal > 5 ? '> 5' : '< 5'}</div> */}
{product?.qtySold > 0 && (