summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/SimilarSide.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/SimilarSide.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/SimilarSide.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/SimilarSide.tsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src-migrate/modules/product-detail/components/SimilarSide.tsx b/src-migrate/modules/product-detail/components/SimilarSide.tsx
index 646a1c51..d70a314d 100644
--- a/src-migrate/modules/product-detail/components/SimilarSide.tsx
+++ b/src-migrate/modules/product-detail/components/SimilarSide.tsx
@@ -1,6 +1,4 @@
-import style from '../styles/side-similar.module.css'
-
-import React from 'react'
+import { Skeleton } from '@chakra-ui/react'
import ProductCard from '~/modules/product-card'
import useProductSimilar from '~/modules/product-similar/hooks/useProductSimilar'
@@ -19,7 +17,11 @@ const SimilarSide = ({ product }: Props) => {
const products = productSimilar.data?.products || []
return (
- <div className={style['wrapper']}>
+ <Skeleton
+ isLoaded={!productSimilar.isLoading}
+ className="h-[500px] overflow-auto grid grid-cols-1 gap-y-4 divide-y divide-gray-300 border border-gray-300 rounded-lg"
+ rounded='lg'
+ >
{products.map((product) => (
<ProductCard
key={product.id}
@@ -27,7 +29,7 @@ const SimilarSide = ({ product }: Props) => {
layout='horizontal'
/>
))}
- </div>
+ </Skeleton>
)
}