Skip to content

Commit

Permalink
fix: Capatilized the currency (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techpurshottam authored Jul 2, 2024
2 parents ffb3a2b + 1825883 commit 6d8eb09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions apps/web/components/home/PlanDetails/PlanDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ export function PlanDetails() {
title: status === CONSTANTS.PAYMENT_SUCCCESS_CODE ? 'Subscription activated' : 'Payment failed',
centered: true,
children: (
<Text fw="bolder" align="center">
<Text size="md" weight={500} align="center" mb="20">
{status === CONSTANTS.PAYMENT_SUCCCESS_CODE
? CONSTANTS.PAYMENT_SUCCESS_MESSAGE
: CONSTANTS.PAYMENT_FAILED_MESSAGE}
</Text>
),
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 });
},
Expand Down
10 changes: 5 additions & 5 deletions apps/web/components/settings/Checkout/CheckoutDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@ export function CheckoutDetails({ checkoutData, isCheckoutDataLoading }: Checkou
</Group>
<Group position="apart">
<Text>Plan Amount (Recurring)</Text>
<Text>{`${checkoutData.planAmount} (${checkoutData.currency})`}</Text>
<Text>{`${checkoutData.planAmount} (${checkoutData.currency.toUpperCase()})`}</Text>
</Group>

{checkoutData.proratedRefund ? (
<Group position="apart">
<Text>Prorated Refund</Text>
<Text>-{`${checkoutData.proratedRefund} (${checkoutData.currency})`}</Text>
<Text>-{`${checkoutData.proratedRefund} (${checkoutData.currency.toUpperCase()})`}</Text>
</Group>
) : null}

<Group position="apart">
<Text>Outstanding Charges</Text>
<Text>{`${checkoutData.outstandingAmount} (${checkoutData.currency})`}</Text>
<Text>{`${checkoutData.outstandingAmount} (${checkoutData.currency.toUpperCase()})`}</Text>
</Group>

{checkoutData.discount ? (
<Group position="apart">
<Text>Coupon Discount</Text>
<Text>-{`${checkoutData.discount} (${checkoutData.currency})`}</Text>
<Text>-{`${checkoutData.discount} (${checkoutData.currency.toUpperCase()})`}</Text>
</Group>
) : null}

Expand All @@ -66,7 +66,7 @@ export function CheckoutDetails({ checkoutData, isCheckoutDataLoading }: Checkou
<Divider />
<Group position="apart">
<Text>Total Amount</Text>
<Text>{`${checkoutData.totalPrice} (${checkoutData.currency})`}</Text>
<Text>{`${checkoutData.totalPrice} (${checkoutData.currency.toUpperCase()})`}</Text>
</Group>
</>
) : null}
Expand Down

0 comments on commit 6d8eb09

Please sign in to comment.