diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-07 15:22:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-07 15:22:39 +0700 |
| commit | 86a715473aca30e277c1857bbcb6e6e9283e13f4 (patch) | |
| tree | 8f89f550b16380078ac460ef80f954ed503c9237 /src-migrate | |
| parent | 3b785b0bce7cf27a377716c8dca300a996daff0c (diff) | |
<iman> update all promo
Diffstat (limited to 'src-migrate')
| -rw-r--r-- | src-migrate/modules/promo/components/FlashSaleNonDisplay.tsx | 20 | ||||
| -rw-r--r-- | src-migrate/pages/shop/promo/index.tsx | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src-migrate/modules/promo/components/FlashSaleNonDisplay.tsx b/src-migrate/modules/promo/components/FlashSaleNonDisplay.tsx new file mode 100644 index 00000000..1c5cc86d --- /dev/null +++ b/src-migrate/modules/promo/components/FlashSaleNonDisplay.tsx @@ -0,0 +1,20 @@ +import dynamic from "next/dynamic"; +import React from "react"; +import { FlashSaleSkeleton } from "@/lib/flashSale/skeleton/FlashSaleSkeleton"; + +const FlashSaleNonDisplay = dynamic( + () => import('@/lib/flashSale/components/FlashSaleNonDisplay'), + { + loading: () => <FlashSaleSkeleton />, + } + ); + + const FlashSalePromo = ()=> { + return( + <> + <FlashSaleNonDisplay/> + </> + ) + } + + export default FlashSalePromo
\ No newline at end of file diff --git a/src-migrate/pages/shop/promo/index.tsx b/src-migrate/pages/shop/promo/index.tsx index febe31a4..95d8a4d5 100644 --- a/src-migrate/pages/shop/promo/index.tsx +++ b/src-migrate/pages/shop/promo/index.tsx @@ -5,6 +5,7 @@ import Hero from '~/modules/promo/components/Hero' import PromotionProgram from '~/modules/promo/components/PromotinProgram' import Voucher from '~/modules/promo/components/Voucher' import FlashSale from '../../../modules/promo/components/FlashSale' +import FlashSaleNonDisplay from '../../../modules/promo/components/FlashSaleNonDisplay' const PromoList = dynamic(() => import('../../../modules/promo/components/PromoList')); @@ -29,6 +30,9 @@ const PromoPage = () => { </LazyLoadComponent> <h1 className='h-1'></h1> <LazyLoadComponent> + <FlashSaleNonDisplay /> + </LazyLoadComponent> + <LazyLoadComponent> <Voucher /> </LazyLoadComponent> </> |
