From baa7cb664e662cee23cdad92c78d9c14cab2445d Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 3 May 2023 15:19:35 +0700
Subject: add whatsapp widget and page not found

---
 src/lib/home/components/HeroBanner.jsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/lib/home/components/HeroBanner.jsx')

diff --git a/src/lib/home/components/HeroBanner.jsx b/src/lib/home/components/HeroBanner.jsx
index e6136e03..50cfc0ff 100644
--- a/src/lib/home/components/HeroBanner.jsx
+++ b/src/lib/home/components/HeroBanner.jsx
@@ -10,6 +10,7 @@ import 'swiper/css/pagination'
 import 'swiper/css/autoplay'
 import MobileView from '@/core/components/views/MobileView'
 import DesktopView from '@/core/components/views/DesktopView'
+import Link from '@/core/components/elements/Link/Link'
 
 const HeroBanner = () => {
   const { heroBanners } = useHeroBanner()
@@ -41,7 +42,9 @@ const HeroBanner = () => {
             <Swiper slidesPerView={1} className='border border-gray_r-6' {...swiperBannerMobile}>
               {heroBanners.data?.map((banner, index) => (
                 <SwiperSlide key={index}>
-                  <Image src={banner.image} alt={banner.name} className='w-full h-auto' />
+                  <Link href={banner.url || ''} className='w-full h-auto'>
+                    <Image src={banner.image} alt={banner.name} className='w-full h-auto' />
+                  </Link>
                 </SwiperSlide>
               ))}
             </Swiper>
@@ -50,7 +53,9 @@ const HeroBanner = () => {
             <Swiper slidesPerView={1} className='border border-gray_r-6' {...swiperBannerDesktop}>
               {heroBanners.data?.map((banner, index) => (
                 <SwiperSlide key={index}>
-                  <Image src={banner.image} alt={banner.name} className='w-full h-auto' />
+                  <Link href={banner.url || ''} className='w-full h-auto'>
+                    <Image src={banner.image} alt={banner.name} className='w-full h-auto' />
+                  </Link>
                 </SwiperSlide>
               ))}
             </Swiper>
-- 
cgit v1.2.3

