From 18258833716a9be993d92567f2d309bc6bc46255 Mon Sep 17 00:00:00 2001 From: Mayur Date: Tue, 2 Jul 2024 19:34:58 +0530 Subject: [PATCH] fix: Capatilized the currency --- apps/web/components/home/PlanDetails/PlanDetails.tsx | 5 ++--- .../components/settings/Checkout/CheckoutDetails.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/web/components/home/PlanDetails/PlanDetails.tsx b/apps/web/components/home/PlanDetails/PlanDetails.tsx index a7de3d321..d573fa5d9 100644 --- a/apps/web/components/home/PlanDetails/PlanDetails.tsx +++ b/apps/web/components/home/PlanDetails/PlanDetails.tsx @@ -46,15 +46,14 @@ export function PlanDetails() { title: status === CONSTANTS.PAYMENT_SUCCCESS_CODE ? 'Subscription activated' : 'Payment failed', centered: true, children: ( - + {status === CONSTANTS.PAYMENT_SUCCCESS_CODE ? CONSTANTS.PAYMENT_SUCCESS_MESSAGE : CONSTANTS.PAYMENT_FAILED_MESSAGE} ), - labels: { confirm: 'Ok', cancel: false }, + labels: { confirm: 'Ok', cancel: null }, confirmProps: { color: status === CONSTANTS.PAYMENT_SUCCCESS_CODE ? 'green' : 'red' }, - onConfirm: () => { router.push(ROUTES.HOME, {}, { shallow: true }); }, diff --git a/apps/web/components/settings/Checkout/CheckoutDetails.tsx b/apps/web/components/settings/Checkout/CheckoutDetails.tsx index db132e50d..4a2dd546c 100644 --- a/apps/web/components/settings/Checkout/CheckoutDetails.tsx +++ b/apps/web/components/settings/Checkout/CheckoutDetails.tsx @@ -39,25 +39,25 @@ export function CheckoutDetails({ checkoutData, isCheckoutDataLoading }: Checkou Plan Amount (Recurring) - {`${checkoutData.planAmount} (${checkoutData.currency})`} + {`${checkoutData.planAmount} (${checkoutData.currency.toUpperCase()})`} {checkoutData.proratedRefund ? ( Prorated Refund - -{`${checkoutData.proratedRefund} (${checkoutData.currency})`} + -{`${checkoutData.proratedRefund} (${checkoutData.currency.toUpperCase()})`} ) : null} Outstanding Charges - {`${checkoutData.outstandingAmount} (${checkoutData.currency})`} + {`${checkoutData.outstandingAmount} (${checkoutData.currency.toUpperCase()})`} {checkoutData.discount ? ( Coupon Discount - -{`${checkoutData.discount} (${checkoutData.currency})`} + -{`${checkoutData.discount} (${checkoutData.currency.toUpperCase()})`} ) : null} @@ -66,7 +66,7 @@ export function CheckoutDetails({ checkoutData, isCheckoutDataLoading }: Checkou Total Amount - {`${checkoutData.totalPrice} (${checkoutData.currency})`} + {`${checkoutData.totalPrice} (${checkoutData.currency.toUpperCase()})`} ) : null}