diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-04 10:46:12 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-04 10:46:12 +0700 |
| commit | 61b5c173a37edf867a764cc965d950182b31b5b3 (patch) | |
| tree | da1b38c90b2ddde3c697b16613df50c221b0e4d4 | |
| parent | 38294c28a5f9cfd0b3fdb13204beebefe537d2f7 (diff) | |
no message
| -rw-r--r-- | src/components/products/ProductCategories.js | 2 | ||||
| -rw-r--r-- | src/pages/index.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/components/products/ProductCategories.js b/src/components/products/ProductCategories.js index 14817039..54ca854b 100644 --- a/src/components/products/ProductCategories.js +++ b/src/components/products/ProductCategories.js @@ -51,7 +51,7 @@ export default function ProductCategories() { }, [ contentIds ]); return contentIds.map((contentId) => ( - <LazyLoadComponent key={contentId}> + <LazyLoadComponent placeholder={<SkeletonProduct/>} key={contentId}> <ProductCategory id={contentId} /> </LazyLoadComponent> )); diff --git a/src/pages/index.js b/src/pages/index.js index fcf47b34..56f0ff1c 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -77,9 +77,7 @@ export default function Home({ heroBanners }) { <ProductSlider products={popularProducts} simpleProductTitleLine /> </div> - <LazyLoadComponent> - <ProductCategories /> - </LazyLoadComponent> + <ProductCategories /> <div className="px-4"> <h5 className="h2 mb-2">Platform Belanja B2B Alat Teknik & Industri di Indonesia</h5> |
