ok
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user