summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/SimilarBottom.tsx
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2024-02-09 10:19:48 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2024-02-09 10:19:48 +0700
commit5ea7cbe7aa564d66a3660839d5a2c40d877647cc (patch)
tree6666549859fe0e1e890263c8d1c24699be9f7ffc /src-migrate/modules/product-detail/components/SimilarBottom.tsx
parent2e38ec15d42201c26c48f9bcf856750204db0582 (diff)
parent41f5aa212c69b61c2b101b682e77c8106849076e (diff)
Merge branch 'release' of https://bitbucket.org/altafixco/next-indoteknik into release
Diffstat (limited to 'src-migrate/modules/product-detail/components/SimilarBottom.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/SimilarBottom.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src-migrate/modules/product-detail/components/SimilarBottom.tsx b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
index 9a12a6ef..40d4dd82 100644
--- a/src-migrate/modules/product-detail/components/SimilarBottom.tsx
+++ b/src-migrate/modules/product-detail/components/SimilarBottom.tsx
@@ -1,4 +1,4 @@
-import React from 'react'
+import { Skeleton } from '@chakra-ui/react'
import useProductSimilar from '~/modules/product-similar/hooks/useProductSimilar'
import ProductSlider from '~/modules/product-slider'
import { IProductDetail } from '~/types/product'
@@ -15,7 +15,15 @@ const SimilarBottom = ({ product }: Props) => {
const products = productSimilar.data?.products || []
- return <ProductSlider products={products} productLayout='vertical' />;
+ return (
+ <Skeleton
+ isLoaded={!productSimilar.isLoading}
+ rounded='lg'
+ className='h-[350px]'
+ >
+ <ProductSlider products={products} productLayout='vertical' />
+ </Skeleton>
+ );
}
export default SimilarBottom \ No newline at end of file