summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-29 15:16:00 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-29 15:16:00 +0700
commit1f07818ba6718755684de5863e01636805b80867 (patch)
tree05b83f0837ebfab050dc51ad8bec6770b3d24b85 /src
parent1a58c55e6415d78f5d155055071a649d1f56492a (diff)
<iman> update to avoid conflict
Diffstat (limited to 'src')
-rw-r--r--src/pages/index.jsx11
1 files changed, 10 insertions, 1 deletions
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>