From 93c68dbc6a873fa84b14eb3d102013f42e53af8a Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 1 Aug 2024 16:19:45 +0700
Subject: <iman> update all promo

---
 src-migrate/modules/promo/components/Hero.tsx | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'src-migrate/modules/promo/components/Hero.tsx')

diff --git a/src-migrate/modules/promo/components/Hero.tsx b/src-migrate/modules/promo/components/Hero.tsx
index 801136e9..110052ba 100644
--- a/src-migrate/modules/promo/components/Hero.tsx
+++ b/src-migrate/modules/promo/components/Hero.tsx
@@ -13,8 +13,8 @@ import DesktopView from '@/core/components/views/DesktopView';
 import {bannerApi} from '../../../../src/api/bannerApi'
 
 interface IPromotionProgram {
-  headline_banner: string;
-  description_banner: string;
+  headlineBanner: string;
+  descriptionBanner: string;
   image: string ;
   name: string;
 }
@@ -43,7 +43,7 @@ const swiperBannerMob = {
 };
 
 const Hero = () => {
-  const heroBanner = useQuery('heroBannerSecondary', bannerApi({ type: 'banner-semua-promo' }))
+  const heroBanner = useQuery('allPromo', bannerApi({ type: 'banner-semua-promo' }));
 
   const banners: IPromotionProgram[] = useMemo(
     () => heroBanner?.data || [],
@@ -55,7 +55,8 @@ const Hero = () => {
     pagination: { dynamicBullets: false, clickable: true },
   };
   
-
+  console.log("banner",banners)
+  // console.log("headlineBanner",banners[0].headlineBanner)
   return (
     <>
       <DesktopView>
@@ -64,9 +65,9 @@ const Hero = () => {
               {banners.map((banner, index) => (
                 <SwiperSlide key={index} className='flex flex-row'>
                   <div className={style['desc-section']}>
-                    <div className={style['title']}>{banner.headline_banner? banner.headline_banner : "Pasti Hemat & Untung Selama Belanja di Indoteknik.com!"}</div>
+                    <div className={style['title']}>{banner.headlineBanner? banner.headlineBanner : "Pasti Hemat & Untung Selama Belanja di Indoteknik.com!"}</div>
                     <div className='h-4' />
-                    <div className={style['subtitle']}>{banner.description_banner? banner.description_banner : "Cari paket yang kami sediakan dengan penawaran harga & Nikmati kemudahan dalam setiap transaksi dengan fitur lengkap Pembayaran hingga barang sampai!"}</div>
+                    <div className={style['subtitle']}>{banner.descriptionBanner? banner.descriptionBanner : "Cari paket yang kami sediakan dengan penawaran harga & Nikmati kemudahan dalam setiap transaksi dengan fitur lengkap Pembayaran hingga barang sampai!"}</div>
                   </div>
                   <div className={style['banner-section']}>
                     <Image
@@ -74,7 +75,7 @@ const Hero = () => {
                       alt={banner.name}
                       width={666}
                       height={450}
-                      quality={100}
+                      quality={90}
                       className='w-full h-full object-fit object-center rounded-2xl' />
                   </div>
                 </SwiperSlide>
-- 
cgit v1.2.3

