From 1f07818ba6718755684de5863e01636805b80867 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 29 Jul 2024 15:16:00 +0700
Subject: <iman> update to avoid conflict

---
 src/pages/index.jsx | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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

diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 0e4ee5e6..30a7ac1f 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -13,6 +13,7 @@ import PagePopupIformation from '~/modules/popup-information';
 import CategoryPilihan from '../lib/home/components/CategoryPilihan';
 import odooApi from '@/core/api/odooApi';
 import { getAuth } from '~/libs/auth';
+// import { getAuth } from '~/libs/auth';
 
 const BasicLayout = dynamic(() =>
   import('@/core/components/layouts/BasicLayout')
@@ -44,6 +45,10 @@ const FlashSale = dynamic(
   }
 );
 
+const ProgramPromotion = dynamic(() =>
+  import('@/lib/home/components/PromotionProgram')
+);
+
 const BannerSection = dynamic(() =>
   import('@/lib/home/components/BannerSection')
 );
@@ -65,6 +70,7 @@ const CustomerReviews = dynamic(() =>
 const ServiceList = dynamic(() => import('@/lib/home/components/ServiceList'));
 
 
+
 export default function Home({categoryId}) {
   const bannerRef = useRef(null);
   const wrapperRef = useRef(null);
@@ -132,7 +138,7 @@ export default function Home({categoryId}) {
             </div>
             {!auth?.feature?.soApproval && (
               <>
-                <FlashSale />
+                <ProgramPromotion /> <FlashSale />
               </>
             )}
             <PromotinProgram />
@@ -161,6 +167,9 @@ export default function Home({categoryId}) {
           </DelayRender>
           {!auth?.feature?.soApproval && (
             <>
+              <DelayRender renderAfter={400}>
+                <ProgramPromotion />
+              </DelayRender>
               <DelayRender renderAfter={600}>
                 <FlashSale />
               </DelayRender>
-- 
cgit v1.2.3

