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/ConfirmAlert.js | 7 +++---- src/components/Header.js | 8 ++++---- src/components/ProductCard.js | 17 ++++++++++++++--- 3 files changed, 21 insertions(+), 11 deletions(-) (limited to 'src/components') diff --git a/src/components/ConfirmAlert.js b/src/components/ConfirmAlert.js index 3a8f796d..27155011 100644 --- a/src/components/ConfirmAlert.js +++ b/src/components/ConfirmAlert.js @@ -1,5 +1,3 @@ -import { useState } from "react"; - const ConfirmAlert = ({ title, caption, @@ -13,10 +11,11 @@ const ConfirmAlert = ({
)}
-

{title}

+

{title}

+

{caption}

- +
diff --git a/src/components/Header.js b/src/components/Header.js index 88d4d368..fe76baba 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -84,26 +84,26 @@ export default function Header({ title }) { Profil Saya
- +
) : ''} Semua Brand
- +
Blog Indoteknik
- +
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