From b7a98fbaa9bd2c8d9fafbe3090bc2c0a8a09dde5 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 16 Dec 2022 15:39:02 +0700 Subject: no message --- src/components/ProductCard.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/components/ProductCard.js') diff --git a/src/components/ProductCard.js b/src/components/ProductCard.js index 604ee9e0..b8967cc8 100644 --- a/src/components/ProductCard.js +++ b/src/components/ProductCard.js @@ -2,6 +2,7 @@ import Link from "./Link"; import currencyFormat from "../helpers/currencyFormat"; import { createSlug } from "../helpers/slug"; import { LazyLoadImage } from "react-lazy-load-image-component"; +import { ChevronRightIcon } from "@heroicons/react/20/solid"; import 'react-lazy-load-image-component/src/effects/blur.css'; @@ -34,17 +35,27 @@ export default function ProductCard({ data }) { {product.lowest_price.discount_percentage}% ) : ''} + {product.lowest_price.price_discount > 0 ? (

{currencyFormat(product.lowest_price.price_discount)}

) : ( - - Tanya Harga + + Tanya Harga )} + {product.stock_total > 0 ? ( -
Ready Stock {product.stock_total > 5 ? '> 5' : '< 5'}
+
+
Ready Stock
+
{product.stock_total > 5 ? '> 5' : '< 5'}
+
) : ''} -- cgit v1.2.3