Skip to content

Commit 50733f3

Browse files
committed
Remove skeleton placeholder bars from ProductCard
ProductCard had two small skeleton-like bars below the product image that were identical to the ones in ProductCardSkeleton. These served no purpose in the rendered card and looked like leftover fallback UI. Made-with: Cursor
1 parent 74697ab commit 50733f3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ui/product-card.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function ProductCard<E extends ElementType = 'div'>({
2929
}: ProductCardProps<E>) {
3030
const Component = as || 'div';
3131
return (
32-
<Component className="group flex flex-col gap-2.5" {...rest}>
32+
<Component className="group" {...rest}>
3333
<div className="overflow-hidden rounded-md bg-gray-900/50 p-8 group-hover:bg-gray-900">
3434
<Image
3535
className={clsx(animateEnter && 'transition-enter')}
@@ -40,11 +40,6 @@ export function ProductCard<E extends ElementType = 'div'>({
4040
height={400}
4141
/>
4242
</div>
43-
44-
<div className="flex flex-col gap-2">
45-
<div className="h-2 w-4/5 rounded-full bg-gray-800" />
46-
<div className="h-2 w-1/3 rounded-full bg-gray-800" />
47-
</div>
4843
</Component>
4944
);
5045
}

0 commit comments

Comments
 (0)