From d4d4227dfb2fefa56ded8ff5897469459f56b069 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 2 Feb 2023 17:13:12 +0700 Subject: no message --- src/components/products/ProductCard.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/components/products/ProductCard.js') diff --git a/src/components/products/ProductCard.js b/src/components/products/ProductCard.js index e32463a7..c79a4900 100644 --- a/src/components/products/ProductCard.js +++ b/src/components/products/ProductCard.js @@ -5,7 +5,10 @@ import { ChevronRightIcon } from "@heroicons/react/20/solid"; import Image from "../elements/Image"; -export default function ProductCard({ data }) { +export default function ProductCard({ + data, + simpleProductTitleLine = false +}) { let product = data; return (
@@ -26,7 +29,7 @@ export default function ProductCard({ data }) { ) : ( - )} - + {product.name}
@@ -34,7 +37,7 @@ export default function ProductCard({ data }) { {product.lowest_price.discount_percentage > 0 ? (

{currencyFormat(product.lowest_price.price)}

- {product.lowest_price.discount_percentage}% + {product.lowest_price.discount_percentage}%
) : ''} @@ -55,7 +58,7 @@ export default function ProductCard({ data }) { {product.stock_total > 0 ? (
-
Ready Stock
+
Ready Stock
{product.stock_total > 5 ? '> 5' : '< 5'}
) : ''} -- cgit v1.2.3