From e8f6a5579b605ab4105cc5d452b70c94ac7f9e4d Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 15 Nov 2024 17:05:20 -0800 Subject: [PATCH] wording tweaks --- src/components/dialogs/VerifyEmailDialog.tsx | 65 +++++++++++++------- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/src/components/dialogs/VerifyEmailDialog.tsx b/src/components/dialogs/VerifyEmailDialog.tsx index d4412b6f89..30b11d188e 100644 --- a/src/components/dialogs/VerifyEmailDialog.tsx +++ b/src/components/dialogs/VerifyEmailDialog.tsx @@ -146,18 +146,17 @@ export function Inner({ ) : null} - - {currentStep === 'StepOne' ? ( - <> - {!reasonText ? ( - <> - - You'll receive an email at{' '} - - {currentAccount?.email} - {' '} - to verify it's you. - {' '} + {currentStep === 'StepOne' ? ( + + {reasonText ? ( + + {reasonText} + + Don't have access to{' '} + + {currentAccount?.email} + + ?{' '} - Need to change it? + Change your email address - - ) : ( - reasonText - )} - - ) : ( + . + + + ) : ( + + + You'll receive an email at{' '} + + {currentAccount?.email} + {' '} + to verify it's you. + {' '} + { + e.preventDefault() + control.close(() => { + openModal({name: 'change-email'}) + }) + return false + }}> + Need to change it? + + + )} + + ) : ( + uiStrings[currentStep].message - )} - + + )} {currentStep === 'StepTwo' ? (