From 51141a0f0f0e2fbaca18dc28df21cd713e27f304 Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Wed, 27 Sep 2023 16:01:49 +0800 Subject: [PATCH] fix: pmindelay --- src/features/pages/home/hero/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/pages/home/hero/index.tsx b/src/features/pages/home/hero/index.tsx index 38d2c7ac348..45fc3c9be55 100644 --- a/src/features/pages/home/hero/index.tsx +++ b/src/features/pages/home/hero/index.tsx @@ -8,8 +8,8 @@ import Flex from 'features/components/atoms/flex-box' import ProductHeroContainer from 'features/components/templates/hero-banners/product' import useRegion from 'components/hooks/use-region' -const HomeHeroSlider = lazy(() => import('./slider')) -const HomeHeroSliderEu = lazy(() => import('./slider')) +const HomeHeroSlider = lazy(() => pMinDelay(import('./slider'), 4000)) +const HomeHeroSliderEu = lazy(() => pMinDelay(import('./slider'), 4000)) // const HomeHeroSlider = loadable(() => pMinDelay(import('./slider'), 4000), { // fallback: (