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/brand | |
| parent | db5d67db219a6672848115b556fd572cdba7c60c (diff) | |
default banner brand, whatsapp link, bug fix after transaction
Diffstat (limited to 'src/lib/brand')
| -rw-r--r-- | src/lib/brand/components/Brand.jsx | 17 |
1 files changed, 17 insertions, 0 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 |
