diff options
author | Hailey <me@haileyok.com> | 2024-11-15 17:32:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 17:32:28 -0800 |
commit | c0fb5245f1201ac424f6fb2f789510f94fa6d2fc (patch) | |
tree | 5f4499c07990e37ac8e5d5514a3d3c92dd1ce3a3 /src/components/dialogs | |
parent | a9cacbf265526879b7eb5f89fcc0df099edb0e5b (diff) | |
download | voidsky-c0fb5245f1201ac424f6fb2f789510f94fa6d2fc.tar.zst |
Tweak email verification dialog (#6397)
Diffstat (limited to 'src/components/dialogs')
-rw-r--r-- | src/components/dialogs/VerifyEmailDialog.tsx | 67 |
1 files changed, 45 insertions, 22 deletions
diff --git a/src/components/dialogs/VerifyEmailDialog.tsx b/src/components/dialogs/VerifyEmailDialog.tsx index d4412b6f8..ced9171ce 100644 --- a/src/components/dialogs/VerifyEmailDialog.tsx +++ b/src/components/dialogs/VerifyEmailDialog.tsx @@ -146,18 +146,17 @@ export function Inner({ <ErrorMessage message={error} /> </View> ) : null} - <Text style={[a.text_md, a.leading_snug]}> - {currentStep === 'StepOne' ? ( - <> - {!reasonText ? ( - <> - <Trans> - You'll receive an email at{' '} - <Text style={[a.text_md, a.leading_snug, a.font_bold]}> - {currentAccount?.email} - </Text>{' '} - to verify it's you. - </Trans>{' '} + {currentStep === 'StepOne' ? ( + <View> + {reasonText ? ( + <View style={[a.gap_sm]}> + <Text style={[a.text_md, a.leading_snug]}>{reasonText}</Text> + <Text style={[a.text_md, a.leading_snug]}> + Don't have access to{' '} + <Text style={[a.text_md, a.leading_snug, a.font_bold]}> + {currentAccount?.email} + </Text> + ?{' '} <InlineLinkText to="#" label={_(msg`Change email address`)} @@ -169,17 +168,41 @@ export function Inner({ }) return false }}> - <Trans>Need to change it?</Trans> + <Trans>Change your email address</Trans> </InlineLinkText> - </> - ) : ( - reasonText - )} - </> - ) : ( - uiStrings[currentStep].message - )} - </Text> + . + </Text> + </View> + ) : ( + <Text style={[a.text_md, a.leading_snug]}> + <Trans> + You'll receive an email at{' '} + <Text style={[a.text_md, a.leading_snug, a.font_bold]}> + {currentAccount?.email} + </Text>{' '} + to verify it's you. + </Trans>{' '} + <InlineLinkText + to="#" + label={_(msg`Change email address`)} + style={[a.text_md, a.leading_snug]} + onPress={e => { + e.preventDefault() + control.close(() => { + openModal({name: 'change-email'}) + }) + return false + }}> + <Trans>Need to change it?</Trans> + </InlineLinkText> + </Text> + )} + </View> + ) : ( + <Text style={[a.text_md, a.leading_snug]}> + {uiStrings[currentStep].message} + </Text> + )} </View> {currentStep === 'StepTwo' ? ( <View> |