diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-03 09:14:02 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-03 09:14:02 +0700 |
| commit | 92b99c8d1d890766da55031f921601372d5b49a3 (patch) | |
| tree | 5f96378660753208487ab140e2268d3db1cb7a47 /src/lib | |
| parent | db5d67db219a6672848115b556fd572cdba7c60c (diff) | |
default banner brand, whatsapp link, bug fix after transaction
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/brand/components/Brand.jsx | 17 | ||||
| -rw-r--r-- | src/lib/checkout/components/FinishCheckout.jsx | 2 | ||||
| -rw-r--r-- | src/lib/product/components/Product/ProductDesktop.jsx | 6 | ||||
| -rw-r--r-- | src/lib/product/components/Product/ProductMobile.jsx | 6 | ||||
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 4 |
5 files changed, 26 insertions, 9 deletions
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 }) => { <> <div> {brand.isLoading && <ImageSkeleton />} + {brand.data?.banners?.length == 0 && ( + <Image + src='/images/default-banner-brand.jpg' + alt='Brand - Indoteknik' + className='w-full' + h-auto + /> + )} {brand.data && ( <> <Swiper @@ -69,10 +77,19 @@ const Brand = ({ id }) => { <Divider /> </> </MobileView> + <DesktopView> <div className='container mx-auto mt-10 mb-3'> <div className='min-h-[150px]'> {brand.isLoading && <ImageSkeleton />} + {brand.data?.banners?.length == 0 && ( + <Image + src='/images/default-banner-brand.jpg' + alt='Brand - Indoteknik' + className='w-full' + h-auto + /> + )} {brand.data && ( <> <Swiper diff --git a/src/lib/checkout/components/FinishCheckout.jsx b/src/lib/checkout/components/FinishCheckout.jsx index cd93e3a4..92245e31 100644 --- a/src/lib/checkout/components/FinishCheckout.jsx +++ b/src/lib/checkout/components/FinishCheckout.jsx @@ -14,7 +14,7 @@ const FinishCheckout = ({ query }) => { <p className='text-caption-2 text-warning-800'>No. Transaksi</p> </div> <Link - href='/my/transactions' + href='/my/quotations' className='bg-warning-400 text-warning-900 rounded-b-xl py-4 block' > 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 }) => { <div className='w-3/4'> {product?.weight > 0 && <span>{product?.weight} KG</span>} {product?.weight == 0 && ( - <a href='https://wa.me' className='text-danger-500 font-medium'> + <a href='https://wa.me/628128080622' className='text-danger-500 font-medium'> Tanya Berat </a> )} @@ -171,7 +171,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { ) : ( <span className='text-gray_r-12/90 font-normal text-h-sm'> Hubungi kami untuk dapatkan harga terbaik, - <a href='https://wa.me/' className='text-danger-500 underline'> + <a href='https://wa.me/628128080622' className='text-danger-500 underline'> klik disini </a> </span> @@ -269,7 +269,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { {variant.price.priceDiscount > 0 ? ( currencyFormat(variant.price.priceDiscount) ) : ( - <a href='https://wa.me/' className='text-red_r-11'> + <a href='https://wa.me/628128080622' className='text-red_r-11'> Call for price </a> )} 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 }) => { ) : ( <span className='text-gray_r-11 leading-6 font-normal'> Hubungi kami untuk dapatkan harga terbaik, - <a href='https://wa.me/' className='text-danger-500 underline'> + <a href='https://wa.me/628128080622' className='text-danger-500 underline'> klik disini </a> </span> @@ -236,7 +236,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { </span> )} {activeVariant?.stock == 0 && ( - <a href='https://wa.me' className='text-danger-500 font-medium'> + <a href='https://wa.me/628128080622' className='text-danger-500 font-medium'> Tanya Stok </a> )} @@ -244,7 +244,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { <SpecificationContent label='Berat Barang'> {activeVariant?.weight > 0 && <span>{activeVariant?.weight} KG</span>} {activeVariant?.weight == 0 && ( - <a href='https://wa.me' className='text-danger-500 font-medium'> + <a href='https://wa.me/628128080622' className='text-danger-500 font-medium'> Tanya Berat </a> )} 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) ) : ( - <a href='https://wa.me/'>Call for price</a> + <a href='https://wa.me/628128080622'>Call for price</a> )} </div> @@ -130,7 +130,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { {product?.lowestPrice?.priceDiscount > 0 ? ( currencyFormat(product?.lowestPrice?.priceDiscount) ) : ( - <a href='https://wa.me/'>Call for price</a> + <a href='https://wa.me/628128080622'>Call for price</a> )} </div> |
