Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace QR with link on mobile #365

Open
wants to merge 9 commits into
base: email-mobile
Choose a base branch
from

Conversation

0xSachinK
Copy link
Member

@0xSachinK 0xSachinK commented May 5, 2024

Screenshot 2024-05-05 at 8 04 41 PM
Screenshot 2024-05-05 at 8 04 52 PM

@@ -85,7 +85,7 @@ const strings: PlatformStrings = {
Amount USD to send, which may not match your requested USDC amount, is double checked
`,
PAYMENT_REQUIREMENT_STEP_THREE: `
Custom messages for Venmo payment consists of text only
Do not add more than one emoji in the payment custom note
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this becomes more confusing, even if it's the true technical limitation

window.open(link, '_blank', 'noopener,noreferrer');
}}
>
{`Send ₹${amount} on ${paymentPlatformName} ↗`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currency symbol needs to be based on the platform

</ButtonContainer>
</PaymentButtonContainer>
) :
(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: keep paren on :159

) :
(
<>
<QRContainer>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to do more work here to spec out / add in the "Desktop Only" modal for Revolut before launching this.

@@ -179,6 +206,8 @@ export const SwapModal: React.FC<SwapModalProps> = ({
onClick={async () => {
handleCompleteClick();
}}
bgColor={ isMobile ? (paymentInitiated ? '#df2e2d' : '#ffcccc') : '#df2e2d'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend using disabled state instead. Also add color constants to theme/colors

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am in a split on how to do this. Feel like the user needs to be shown only one CTA on the send payment page. But we can't just disable the other button until the pay button is clicked because the user might have paid and is coming back to this page again from somewhere else in the app, and hence shouldn't be forced to click on the pay button to enable the "I have completed payment". I think we need a more complex state management here which caches the first click in parent components rather than just storing it in state which will get reset on rendering.

@@ -256,6 +285,9 @@ const InstructionsTitle = styled.div`
text-align: center;
`;

const PaymentButtonContainer = styled.div`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component seems unnecessary?

@@ -67,15 +72,15 @@ export const SwapModal: React.FC<SwapModalProps> = ({
return {
troubleScanningQRCodeLink: link,
paymentPlatformName: 'Venmo',
instructionsText: `Scan and send $${amount}`,
instructionsText: isMobile ? ``: `Scan and send $${amount}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems inconsistent with the others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants