Skip to content

Commit

Permalink
feat: change email & phone validation text (DimensionDev#4363)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhihong23 authored Sep 16, 2021
1 parent f1f6a30 commit 11bb2e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/dashboard/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@
"settings_dialogs_incorrect_password": "Incorrect password.",
"settings_dialogs_inconsistency_password": "Password inconsistency.",
"settings_dialogs_current_email_validation": "The current email for verification is",
"settings_dialogs_change_email_validation": "To change the Email, you need to verify your current Email address:",
"settings_dialogs_current_phone_validation": "The current phone number for verification is",
"settings_dialogs_change_phone_validation": "To change the phone number, you need to verify your current phone number:",
"settings_dialogs_merge_to_local": "Merge to local",
"settings_dialogs_merge_to_local_data": "Merge to local data",
"settings_dialogs_upload_local_data": "Upload local data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export default function SettingEmailDialog({ open, onClose }: SettingEmailDialog
</Box>
) : (
<Box className={classes.container} sx={{ paddingTop: '24px' }}>
<Typography>{t.settings_dialogs_current_email_validation()}</Typography>
<Typography sx={{ paddingBottom: '8px' }}>
{step === 0
? t.settings_dialogs_change_email_validation()
: t.settings_dialogs_current_email_validation()}
</Typography>
<Typography color="primary" fontWeight="bold" variant="h4">
{email}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ export default function SettingPhoneNumberDialog({ open, onClose }: SettingPhone
</Box>
) : (
<Box className={classes.container} sx={{ paddingTop: '24px' }}>
<Typography>{t.settings_dialogs_current_phone_validation()}</Typography>
<Typography sx={{ paddingBottom: '8px' }}>
{step === 0
? t.settings_dialogs_change_phone_validation()
: t.settings_dialogs_current_phone_validation()}
</Typography>
<Typography color="primary" fontWeight="bold" variant="h4">
{countryCode} {phone}
</Typography>
Expand Down

0 comments on commit 11bb2e1

Please sign in to comment.