summaryrefslogtreecommitdiff
path: root/src/pages/index.jsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-05-04 15:38:40 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-05-04 15:38:40 +0700
commit6e816fba49e020bfdc3f1ffa10183b585e87d9c1 (patch)
tree4e8b19f2f3f4da8d783678d58d8c35d2773bab45 /src/pages/index.jsx
parentffebc1b10550e10de6cde9b4757dd0d5a4cf644c (diff)
optimizing performance
Diffstat (limited to 'src/pages/index.jsx')
-rw-r--r--src/pages/index.jsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index 9c434660..5ca7b939 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -3,28 +3,23 @@ import ImageSkeleton from '@/core/components/elements/Skeleton/ImageSkeleton'
import PopularProductSkeleton from '@/lib/home/components/Skeleton/PopularProductSkeleton'
import MobileView from '@/core/components/views/MobileView'
import DesktopView from '@/core/components/views/DesktopView'
-import { useEffect, useRef, useState } from 'react'
-import { NextSeo } from 'next-seo'
+import { useRef } from 'react'
import Seo from '@/core/components/Seo'
import { useQuery } from 'react-query'
import odooApi from '@/core/api/odooApi'
import Image from 'next/image'
-import FlashSale from '@/lib/flashSale/components/FlashSale'
const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout'))
-
+const FlashSale = dynamic(() => import('@/lib/flashSale/components/FlashSale'))
const HeroBanner = dynamic(() => import('@/lib/home/components/HeroBanner'), {
loading: () => <ImageSkeleton />
})
-
const PreferredBrand = dynamic(() => import('@/lib/home/components/PreferredBrand'), {
loading: () => <PopularProductSkeleton />
})
-
const PopularProduct = dynamic(() => import('@/lib/home/components/PopularProduct'), {
loading: () => <PopularProductSkeleton />
})
-
const CategoryHomeId = dynamic(() => import('@/lib/home/components/CategoryHomeId'), {
loading: () => <PopularProductSkeleton />
})