From ee4297280c1305c7e03bedd4df63ccf136c28c6c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 24 Jan 2023 15:54:48 +0700 Subject: Merapihkan struktur folder --- src/components/ProductCard.js | 66 ------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/components/ProductCard.js (limited to 'src/components/ProductCard.js') diff --git a/src/components/ProductCard.js b/src/components/ProductCard.js deleted file mode 100644 index 2cb0d99b..00000000 --- a/src/components/ProductCard.js +++ /dev/null @@ -1,66 +0,0 @@ -import Link from "./Link"; -import currencyFormat from "../helpers/currencyFormat"; -import { createSlug } from "../helpers/slug"; -import { ChevronRightIcon } from "@heroicons/react/20/solid"; -import Image from "./Image"; - - -export default function ProductCard({ data }) { - let product = data; - return ( -
- - {product.name} - {product.variant_total > 1 ? ( -
{product.variant_total} Varian
- ) : ''} - -
-
- {typeof product.manufacture.name !== "undefined" ? ( - {product.manufacture.name} - ) : ( - - - )} - - {product.name} - -
-
- {product.lowest_price.discount_percentage > 0 ? ( -
-

{currencyFormat(product.lowest_price.price)}

- {product.lowest_price.discount_percentage}% -
- ) : ''} - - {product.lowest_price.price_discount > 0 ? ( -

- {currencyFormat(product.lowest_price.price_discount)} -

- ) : ( - - Tanya Harga - - )} - - {product.stock_total > 0 ? ( -
-
Ready Stock
-
{product.stock_total > 5 ? '> 5' : '< 5'}
-
- ) : ''} -
-
-
- ) -} \ No newline at end of file -- cgit v1.2.3