From d324d01bb9413a023a158a7bd15ba36bb7beb9bc Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Fri, 29 Nov 2024 14:38:24 +0700
Subject: update performance

---
 src/pages/index.jsx | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'src/pages/index.jsx')

diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 2ec1231a..e685b382 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -16,7 +16,7 @@ import CategoryPilihan from '../lib/home/components/CategoryPilihan';
 // import { getAuth } from '~/libs/auth';
 
 const BasicLayout = dynamic(() =>
-  import('@/core/components/layouts/BasicLayout'),{ssr: false}
+  import('@/core/components/layouts/BasicLayout')
 );
 const HeroBanner = dynamic(() => import('@/components/ui/HeroBanner'), {
   loading: () => <HeroBannerSkeleton />,
@@ -40,24 +40,17 @@ const PreferredBrand = dynamic(
 
 const FlashSale = dynamic(
   () => import('@/lib/flashSale/components/FlashSale'),
-  {
-    loading: () => <FlashSaleSkeleton />,
-  }
 );
 
 const ProgramPromotion = dynamic(
-  () => import('@/lib/home/components/PromotionProgram'),
-  {
-    loading: () => <BannerPromoSkeleton />,
-  }
+  () => import('@/lib/home/components/PromotionProgram')
 );
 
 const BannerSection = dynamic(() =>
   import('@/lib/home/components/BannerSection')
 );
 const CategoryHomeId = dynamic(
-  () => import('@/lib/home/components/CategoryHomeId'),
-  { ssr: false }
+  () => import('@/lib/home/components/CategoryHomeId')
 );
 
 const CategoryDynamic = dynamic(() =>
-- 
cgit v1.2.3

