Compare commits
4 Commits
version_8_
...
version_9_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56cd4902bd | ||
| 46096bc2de | |||
| a0d5e89304 | |||
| 9c6e7a549c |
@@ -108,21 +108,7 @@ const ProductRatingCards = ({
|
|||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<h3 className="text-xl font-medium truncate">{product.name}</h3>
|
<h3 className="text-xl font-medium truncate">{product.name}</h3>
|
||||||
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<div className="flex items-center gap-1">
|
|
||||||
{Array.from({ length: 5 }).map((_, index) => (
|
|
||||||
<Star
|
|
||||||
key={index}
|
|
||||||
className={cls(
|
|
||||||
"size-4 text-accent",
|
|
||||||
index < Math.floor(product.rating) ? "fill-accent" : "opacity-20"
|
|
||||||
)}
|
|
||||||
strokeWidth={1.5}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
<span className="text-sm">({product.reviewCount})</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="text-2xl font-medium">{product.price}</p>
|
<p className="text-2xl font-medium">{product.price}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user