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 &&