forked from crowetic/commerce
Click image in cart should go to product (#227)
Co-authored-by: B <curciobelen@gmail.com>
This commit is contained in:
parent
8dee3bdf94
commit
a85772a73e
@ -92,8 +92,10 @@ const CartItem = ({
|
|||||||
})}
|
})}
|
||||||
{...rest}
|
{...rest}
|
||||||
>
|
>
|
||||||
<div className="w-16 h-16 bg-violet relative overflow-hidden">
|
<div className="w-16 h-16 bg-violet relative overflow-hidden cursor-pointer">
|
||||||
|
<Link href={`/product/${item.path}`}>
|
||||||
<Image
|
<Image
|
||||||
|
onClick={() => closeSidebarIfPresent()}
|
||||||
className={s.productImage}
|
className={s.productImage}
|
||||||
width={150}
|
width={150}
|
||||||
height={150}
|
height={150}
|
||||||
@ -101,6 +103,7 @@ const CartItem = ({
|
|||||||
alt={item.variant.image!.altText}
|
alt={item.variant.image!.altText}
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-1 flex flex-col text-base">
|
<div className="flex-1 flex flex-col text-base">
|
||||||
<Link href={`/product/${item.path}`}>
|
<Link href={`/product/${item.path}`}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user