summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-15 09:56:23 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-15 09:56:23 +0000
commit5b67ba6f84354f06fa832b19efaa5e6ceb7e052e (patch)
tree88c628f0547ccf210bd43b7d698ed82dcfae20ba /src/lib
parent0c2f4f66314ea216d3ce5b8f6c698855e3cb9386 (diff)
parent33363a1a8dc7f4641b7b054dc72339bf53495102 (diff)
Merged in Feature/pickup-service (pull request #243)
<iman> update pickup image on product card
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/ProductCard.jsx26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 4b3f693c..a1491c7f 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -146,24 +146,20 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
)}
</Link>
<div className='p-2 sm:p-3 pb-3 text-caption-2 sm:text-body-2 leading-5'>
- {product?.manufacture?.name ? (
- <div className='flex justify-between'>
- <Link href={URL.manufacture} className='mb-1'>
- <div>
- {product.manufacture.name}
- </div>
- </Link>
+ <div className='flex justify-between '>
+ {product?.manufacture?.name ? (
+ <Link href={URL.manufacture} className='mb-1 mt-1'>
+ {product.manufacture.name}
+ </Link>
+ ) : (
+ <div>-</div>
+ )}
{product?.is_in_bu && (
- <div className='bg-red-500 rounded'>
- <span className='p-[6px] text-xs text-white'>
- Click & Pickup
- </span>
+ <div className=''>
+ <Image src='/images/PICKUP-NOW.png' alt='pickup now' width={90} height={12} />
</div>
)}
- </div>
- ) : (
- <div>-</div>
- )}
+ </div>
<Link
href={URL.product}
className={`mb-2 !text-gray_r-12 leading-6 block line-clamp-3 h-[64px]`}