From 92b99c8d1d890766da55031f921601372d5b49a3 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 3 May 2023 09:14:02 +0700 Subject: default banner brand, whatsapp link, bug fix after transaction --- src/lib/brand/components/Brand.jsx | 17 +++++++++++++++++ src/lib/checkout/components/FinishCheckout.jsx | 2 +- src/lib/product/components/Product/ProductDesktop.jsx | 6 +++--- src/lib/product/components/Product/ProductMobile.jsx | 6 +++--- src/lib/product/components/ProductCard.jsx | 4 ++-- 5 files changed, 26 insertions(+), 9 deletions(-) (limited to 'src/lib') diff --git a/src/lib/brand/components/Brand.jsx b/src/lib/brand/components/Brand.jsx index 6ebb8aa7..d570aa8b 100644 --- a/src/lib/brand/components/Brand.jsx +++ b/src/lib/brand/components/Brand.jsx @@ -29,6 +29,14 @@ const Brand = ({ id }) => { <>
{brand.isLoading && } + {brand.data?.banners?.length == 0 && ( + Brand - Indoteknik + )} {brand.data && ( <> { +
{brand.isLoading && } + {brand.data?.banners?.length == 0 && ( + Brand - Indoteknik + )} {brand.data && ( <> {

No. Transaksi

Lihat detail pembelian Anda disini diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx index 9ff782ce..dc22fcae 100644 --- a/src/lib/product/components/Product/ProductDesktop.jsx +++ b/src/lib/product/components/Product/ProductDesktop.jsx @@ -141,7 +141,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => {
{product?.weight > 0 && {product?.weight} KG} {product?.weight == 0 && ( - + Tanya Berat )} @@ -171,7 +171,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { ) : ( Hubungi kami untuk dapatkan harga terbaik,  - + klik disini @@ -269,7 +269,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { {variant.price.priceDiscount > 0 ? ( currencyFormat(variant.price.priceDiscount) ) : ( - + Call for price )} diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx index b75a191b..02cf0137 100644 --- a/src/lib/product/components/Product/ProductMobile.jsx +++ b/src/lib/product/components/Product/ProductMobile.jsx @@ -152,7 +152,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { ) : ( Hubungi kami untuk dapatkan harga terbaik,  - + klik disini @@ -236,7 +236,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { )} {activeVariant?.stock == 0 && ( - + Tanya Stok )} @@ -244,7 +244,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { {activeVariant?.weight > 0 && {activeVariant?.weight} KG} {activeVariant?.weight == 0 && ( - + Tanya Berat )} diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index a1c30d00..725e6efe 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -58,7 +58,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { {product?.lowestPrice.priceDiscount > 0 ? ( currencyFormat(product?.lowestPrice.priceDiscount) ) : ( - Call for price + Call for price )}
@@ -130,7 +130,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { {product?.lowestPrice?.priceDiscount > 0 ? ( currencyFormat(product?.lowestPrice?.priceDiscount) ) : ( - Call for price + Call for price )}
-- cgit v1.2.3