From a85772a73efaad8b857b7f31349cd8400f9d779b Mon Sep 17 00:00:00 2001 From: Vinicius Zucatti <viniciuszucatti@gmail.com> Date: Fri, 19 Mar 2021 13:02:59 -0300 Subject: [PATCH 1/2] Click image in cart should go to product (#227) Co-authored-by: B <curciobelen@gmail.com> --- components/cart/CartItem/CartItem.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index cb7f8600e..e6820d32c 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -92,15 +92,18 @@ const CartItem = ({ })} {...rest} > - <div className="w-16 h-16 bg-violet relative overflow-hidden"> - <Image - className={s.productImage} - width={150} - height={150} - src={item.variant.image!.url} - alt={item.variant.image!.altText} - unoptimized - /> + <div className="w-16 h-16 bg-violet relative overflow-hidden cursor-pointer"> + <Link href={`/product/${item.path}`}> + <Image + onClick={() => closeSidebarIfPresent()} + className={s.productImage} + width={150} + height={150} + src={item.variant.image!.url} + alt={item.variant.image!.altText} + unoptimized + /> + </Link> </div> <div className="flex-1 flex flex-col text-base"> <Link href={`/product/${item.path}`}> From b5ba5e76be75257248a4f8daded15e5a184eebb0 Mon Sep 17 00:00:00 2001 From: Joe Refoy <hello@joerefoy.com> Date: Sat, 20 Mar 2021 02:07:35 +1000 Subject: [PATCH 2/2] Fix yarn package installation command (#240) * Fix yarn package installation command * Update README.md Co-authored-by: B <curciobelen@gmail.com> Co-authored-by: B <belen@vercel.com> --- framework/shopify/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/shopify/README.md b/framework/shopify/README.md index fc6a70ce3..eeae73afc 100644 --- a/framework/shopify/README.md +++ b/framework/shopify/README.md @@ -27,8 +27,8 @@ Collection of hooks and data fetching functions to integrate Shopify in a React 1. Install dependencies: ``` -yarn install shopify-buy -yarn install -D @types/shopify-buy +yarn add shopify-buy +yarn add @types/shopify-buy ``` 3. Environment variables need to be set: