diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-28 09:56:07 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-28 09:56:07 +0700 |
| commit | cecfba57469bb9a96c2b117cdb7dbfb0bd7eb86e (patch) | |
| tree | 10abe92077ae98cb47691de9dcf77ff96d563907 /src/lib/home/components/PromotionProgram.jsx | |
| parent | f3aa76b1810b3bc8b25bd02c76b50384893fc453 (diff) | |
| parent | 2dbd2eb810855b364b0fd529cc0e912cc303152b (diff) | |
Merge branch 'release' into CR/voucher_shiping
Diffstat (limited to 'src/lib/home/components/PromotionProgram.jsx')
| -rw-r--r-- | src/lib/home/components/PromotionProgram.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/home/components/PromotionProgram.jsx b/src/lib/home/components/PromotionProgram.jsx index 99258d94..c2f76069 100644 --- a/src/lib/home/components/PromotionProgram.jsx +++ b/src/lib/home/components/PromotionProgram.jsx @@ -3,11 +3,16 @@ import Image from 'next/image' import { bannerApi } from '@/api/bannerApi'; import useDevice from '@/core/hooks/useDevice' import { Swiper, SwiperSlide } from 'swiper/react'; +import BannerPromoSkeleton from '../components/Skeleton/BannerPromoSkeleton'; const { useQuery } = require('react-query') const BannerSection = () => { const promotionProgram = useQuery('promotionProgram', bannerApi({ type: 'banner-promotion' })); const { isMobile, isDesktop } = useDevice() + if (promotionProgram.isLoading) { + return <BannerPromoSkeleton />; + } + return ( <div className='px-4 sm:px-0'> <div className='flex justify-between items-center mb-4 '> |
