4
0
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:
Vinicius Zucatti 2021-03-19 13:02:59 -03:00 committed by GitHub
parent 8dee3bdf94
commit a85772a73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,15 +92,18 @@ 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">
<Image <Link href={`/product/${item.path}`}>
className={s.productImage} <Image
width={150} onClick={() => closeSidebarIfPresent()}
height={150} className={s.productImage}
src={item.variant.image!.url} width={150}
alt={item.variant.image!.altText} height={150}
unoptimized src={item.variant.image!.url}
/> alt={item.variant.image!.altText}
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}`}>