From 33363a1a8dc7f4641b7b054dc72339bf53495102 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Thu, 15 Aug 2024 16:55:28 +0700 Subject: update pickup image on product card --- public/images/PICKUP-NOW.png | Bin 0 -> 1926 bytes src-migrate/modules/cart/components/Item.tsx | 2 -- src/lib/product/components/ProductCard.jsx | 26 +++++++++++--------------- 3 files changed, 11 insertions(+), 17 deletions(-) create mode 100644 public/images/PICKUP-NOW.png diff --git a/public/images/PICKUP-NOW.png b/public/images/PICKUP-NOW.png new file mode 100644 index 00000000..d7c01f44 Binary files /dev/null and b/public/images/PICKUP-NOW.png differ 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 (
{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' }) => { )}
- {product?.manufacture?.name ? ( -
- -
- {product.manufacture.name} -
- +
+ {product?.manufacture?.name ? ( + + {product.manufacture.name} + + ) : ( +
-
+ )} {product?.is_in_bu && ( -
- - Click & Pickup - +
+ pickup now
)} -
- ) : ( -
-
- )} +