Skip to content

Commit

Permalink
Add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSachinK committed May 6, 2024
1 parent 043779b commit 56ad602
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions client/src/components/Swap/SwapModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ export const SwapModal: React.FC<SwapModalProps> = ({
case PaymentPlatform.VENMO:
return {
troubleScanningQRCodeLink: link,
currencySymbol: '$',
paymentPlatformName: 'Venmo',
instructionsText: isMobile ? ``: `Scan and send $${amount}`,
instructionsText: isMobile ? `Click above to pay`: `Scan and send $${amount}`,
};

case PaymentPlatform.HDFC:
Expand All @@ -86,20 +87,23 @@ export const SwapModal: React.FC<SwapModalProps> = ({
case PaymentPlatform.GARANTI:
return {
troubleScanningQRCodeLink: ZKP2P_TG_TURKEY_CHAT_LINK,
currencySymbol: 'TRY',
paymentPlatformName: 'Garanti',
instructionsText: `Using your Garanti app, send ₺${amount} <br />to the above IBAN account number and name`,
};

case PaymentPlatform.REVOLUT:
return {
troubleScanningQRCodeLink: REVOLUT_SEND_PAGE_LINK,
currencySymbol: '€',
paymentPlatformName: 'Revolut',
instructionsText: `Scan and send €${amount} <br />to ${venmoId}`,
};

default:
return {
troubleScanningQRCodeLink: link,
currencySymbol: '$',
paymentPlatformName: 'Venmo',
instructionsText: !isMobile
? `Scan and send $${amount} <br />to ${venmoId}`
Expand All @@ -109,6 +113,7 @@ export const SwapModal: React.FC<SwapModalProps> = ({
};

const {
currencySymbol,
paymentPlatformName,
troubleScanningQRCodeLink,
instructionsText
Expand Down Expand Up @@ -152,12 +157,11 @@ export const SwapModal: React.FC<SwapModalProps> = ({
window.open(link, '_blank', 'noopener,noreferrer');
}}
>
{`Send ${amount} on ${paymentPlatformName} ↗`}
{`Send ${currencySymbol}${amount} on ${paymentPlatformName} ↗`}
</Button>
</ButtonContainer>
</PaymentButtonContainer>
) :
(
) : (
<>
<QRContainer>
<QRCode
Expand Down Expand Up @@ -285,9 +289,6 @@ const InstructionsTitle = styled.div`
text-align: center;
`;

const PaymentButtonContainer = styled.div`
`

const InstructionsLabel = styled.div`
font-size: 14px;
text-align: center;
Expand Down

0 comments on commit 56ad602

Please sign in to comment.