From a4aae5bf08cc27d5575075886e2584693f72b612 Mon Sep 17 00:00:00 2001 From: zadit <75159257+insvrgent@users.noreply.github.com> Date: Wed, 29 Jan 2025 07:16:00 +0700 Subject: [PATCH] ok --- src/components/Coupon.js | 2 +- src/pages/Join.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Coupon.js b/src/components/Coupon.js index 46e5a3e..53b5a25 100644 --- a/src/components/Coupon.js +++ b/src/components/Coupon.js @@ -3,7 +3,7 @@ import './Coupon.css'; // Import a CSS file for styling const Coupon = ({ code, value, period, type, expiration }) => { // Format the value based on type - const formattedValue = type == 'fixed' ? `Rp ${value}` : value != 0 ? `${value}%` : 'kupon berlangganan'; + const formattedValue = type == 'fixed' ? `Diskon Rp${value}` : value != 0 ? `Diskon${value}%` : 'kupon berlangganan'; // Function to convert expiration to Indonesian date format (dd MMMM yyyy) const formatExpirationDate = (dateString) => { diff --git a/src/pages/Join.js b/src/pages/Join.js index a356f57..ac3e123 100644 --- a/src/pages/Join.js +++ b/src/pages/Join.js @@ -131,6 +131,7 @@ const LinktreePage = ({ data, setModal }) => { code={couponDetails?.code || null} value={couponDetails?.discountValue} period={couponDetails?.discountPeriods} + type={couponDetails?.type} expiration={couponDetails?.expirationDate} /> {couponStatus === 200 &&