From 92b99c8d1d890766da55031f921601372d5b49a3 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
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 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'src/lib/brand/components/Brand.jsx')

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
-- 
cgit v1.2.3

