diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-30 13:51:19 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-30 13:51:48 +0700 |
| commit | 9c2b36fb15511b9f38492e133125a8b766c58a19 (patch) | |
| tree | a31117cd908034c973be20b9816374cd195965de /src-migrate/modules/product-detail/components/ProductDetail.tsx | |
| parent | 76e3eec8db414307cea6b11e3ebb461aed8e1e26 (diff) | |
Update product similar section
Diffstat (limited to 'src-migrate/modules/product-detail/components/ProductDetail.tsx')
| -rw-r--r-- | src-migrate/modules/product-detail/components/ProductDetail.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index 80f43aea..2bd3c901 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -23,6 +23,7 @@ import SimilarBottom from './SimilarBottom' import PriceAction from './PriceAction' import ProductPromoSection from '~/modules/product-promo/components/Section' import Breadcrumb from './Breadcrumb' +import { LazyLoadComponent } from 'react-lazy-load-image-component' type Props = { product: IProductDetail @@ -166,7 +167,9 @@ const ProductDetail = ({ product }: Props) => { <div className='h-6' /> - <SimilarBottom product={product} /> + <LazyLoadComponent> + <SimilarBottom product={product} /> + </LazyLoadComponent> </div> <div className='h-6 md:h-0' /> |
