From c28642a0003f0bd996614cb6849d951c7e276a11 Mon Sep 17 00:00:00 2001 From: trisusilo48 Date: Tue, 17 Sep 2024 14:37:18 +0700 Subject: optimize page and tag html --- .../components/elements/Navbar/NavbarDesktop.jsx | 8 ++++---- src/lib/home/components/PreferredBrand.jsx | 2 +- src/lib/home/components/PromotionProgram.jsx | 2 +- src/pages/index.jsx | 20 ++++++++++---------- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index ebbcf857..2a51c41f 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -293,7 +293,7 @@ const NavbarDesktop = () => { /> )} -

Semua Promo

+ Semua Promo {/* {showPopup && router.pathname === '/' && (
@@ -312,7 +312,7 @@ const NavbarDesktop = () => { target='_blank' rel='noreferrer' > -

Semua Brand

+ Semua Brand { target='_blank' rel='noreferrer' > -

Ready Stock

+ Ready Stock { target='_blank' rel='noreferrer noopener' > -

Blog Indoteknik

+ Blog Indoteknik {/* { return (
-
Brand Pilihan
+

Brand Pilihan

{isDesktop && ( Lihat Semua diff --git a/src/lib/home/components/PromotionProgram.jsx b/src/lib/home/components/PromotionProgram.jsx index c2f76069..fd8d6fda 100644 --- a/src/lib/home/components/PromotionProgram.jsx +++ b/src/lib/home/components/PromotionProgram.jsx @@ -16,7 +16,7 @@ const BannerSection = () => { return (
-
Promo Tersedia
+

Promo Tersedia

{isDesktop && ( Lihat Semua diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 0e87205e..6077c192 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -18,7 +18,7 @@ import { getAuth } from '~/libs/auth'; import useProductDetail from '~/modules/product-detail/stores/useProductDetail'; const BasicLayout = dynamic(() => - import('@/core/components/layouts/BasicLayout') + import('@/core/components/layouts/BasicLayout'),{ssr: false} ); const HeroBanner = dynamic(() => import('@/components/ui/HeroBanner'), { loading: () => , @@ -55,24 +55,24 @@ const ProgramPromotion = dynamic(() => ); const BannerSection = dynamic(() => - import('@/lib/home/components/BannerSection') + import('@/lib/home/components/BannerSection'), {ssr: false} ); const CategoryHomeId = dynamic(() => - import('@/lib/home/components/CategoryHomeId') + import('@/lib/home/components/CategoryHomeId'), {ssr: false} ); const CategoryDynamic = dynamic(() => - import('@/lib/home/components/CategoryDynamic') + import('@/lib/home/components/CategoryDynamic'), {ssr: false} ); const CategoryDynamicMobile = dynamic(() => -import('@/lib/home/components/CategoryDynamicMobile') +import('@/lib/home/components/CategoryDynamicMobile'), {ssr: false} ); const CustomerReviews = dynamic(() => - import('@/lib/review/components/CustomerReviews') + import('@/lib/review/components/CustomerReviews'), {ssr: false} ); // need to ssr:false -const ServiceList = dynamic(() => import('@/lib/home/components/ServiceList')); // need to ssr: false +const ServiceList = dynamic(() => import('@/lib/home/components/ServiceList'), {ssr: false}); // need to ssr: false @@ -148,11 +148,11 @@ export default function Home({categoryId}) { )} - + {/* */} {dataCategories &&( )} - + @@ -183,7 +183,7 @@ export default function Home({categoryId}) { )} - + {/* */} {dataCategories &&( -- cgit v1.2.3