From d71646a60d8a1b40c8bae76ff1570ead8df9d1fc Mon Sep 17 00:00:00 2001 From: John Vandivier Date: Mon, 31 May 2021 22:31:16 -0400 Subject: [PATCH 1/3] feat: concise card code (#348) --- pages/index.tsx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 4f65a93c8..3a466c606 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -52,15 +52,7 @@ export default function Home({ {products.slice(0, 3).map((product, i) => ( - + ))} {products.slice(0, 3).map((product, i) => ( - + ))} {/* Date: Mon, 31 May 2021 23:32:10 -0300 Subject: [PATCH 2/3] Update next.config.js filter (#329) Its a little more explicit using boolean than x => x --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 9d6a29ba1..b1e48cf1e 100644 --- a/next.config.js +++ b/next.config.js @@ -49,7 +49,7 @@ module.exports = withCommerceConfig({ source: '/search/:category', destination: '/search', }, - ].filter((x) => x) + ].filter(Boolean) }, }) From 0792eabd4cb2b911e7604c5545e40f785cd840fd Mon Sep 17 00:00:00 2001 From: cond0r Date: Tue, 1 Jun 2021 05:34:28 +0300 Subject: [PATCH 3/3] Fix missing images (#264) Co-authored-by: B --- components/product/ProductCard/ProductCard.tsx | 4 ++-- components/wishlist/WishlistCard/WishlistCard.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index ade53380c..45a19d2dd 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -34,7 +34,7 @@ const ProductCard: FC = ({ {product?.images && ( {product.name = ({ {product.name = ({ product }) => { const { price } = usePrice({ amount: product.prices?.price?.value, @@ -58,10 +60,10 @@ const WishlistCard: FC = ({ product }) => {
{product.images[0].alt