diff options
| -rw-r--r-- | public/images/PICKUP-NOW.png | bin | 0 -> 1926 bytes | |||
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 2 | ||||
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 26 |
3 files changed, 11 insertions, 17 deletions
diff --git a/public/images/PICKUP-NOW.png b/public/images/PICKUP-NOW.png Binary files differnew file mode 100644 index 00000000..d7c01f44 --- /dev/null +++ b/public/images/PICKUP-NOW.png diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index a9b2d968..a54d4648 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -22,8 +22,6 @@ type Props = { } const CartItem = ({ item, editable = true, selfPicking}: Props) => { - console.log("item",item) - console.log("selfPicking",selfPicking) return ( <div className={style.wrapper}> {item.cart_type === 'promotion' && ( 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]`} |
