Skip to content

Commit fb482d3

Browse files
committed
Update CartContents.component.tsx
1 parent 3388ddb commit fb482d3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/Cart/CartContents.component.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ const CartContents = () => {
9494
key={item.key}
9595
className="flex items-center border-b border-gray-200 py-4"
9696
>
97+
<div className="flex-shrink-0 w-24 h-24 relative hidden md:block">
98+
<Image
99+
src={
100+
item.product.node.image?.sourceUrl || '/placeholder.png'
101+
}
102+
alt={item.product.node.name}
103+
layout="fill"
104+
objectFit="cover"
105+
className="rounded"
106+
/>
107+
</div>
97108
<div className="flex-grow ml-4">
98109
<h2 className="text-lg font-semibold">
99110
{item.product.node.name}

0 commit comments

Comments
 (0)