From b23896998c74dc4cf181e1abc79d63220542d741 Mon Sep 17 00:00:00 2001 From: Martin Bavio Date: Tue, 27 Oct 2020 00:31:44 -0300 Subject: [PATCH] Add link for slim version of product card --- .../product/ProductCard/ProductCard.tsx | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 345c31177..cad54c4da 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -31,56 +31,56 @@ const ProductCard: FC = ({ currencyCode: p.prices?.price?.currencyCode!, }) - if (variant === 'slim') { - return ( -
-
- - {p.name} - -
- -
- ) - } - return ( -
-
-
-

- {p.name} -

- {price} + {variant === 'slim' ? ( +
+
+ + {p.name} + +
+
- -
-
- -
+ ) : ( + <> +
+
+
+

+ {p.name} +

+ {price} +
+ +
+
+ +
+ + )}
)