From b87c2654045fa68b030b95b03b9af5eac8665e6e Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 14 Mar 2024 11:47:06 +1100 Subject: [PATCH] feat: fixed alignment of loading screen and updated enter new display name copy --- _locales/en/messages.json | 2 ++ ts/components/registration/stages/RestoreAccount.tsx | 11 +++++------ ts/types/LocalizerKeys.ts | 2 ++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 6f87c8141..cb18652f3 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -583,6 +583,8 @@ "displayNamePick": "Pick your display name", "displayNameDescription": "It can be your real name, an alias, or anything else you like — and you can change it any time.", "displayNameErrorDescriptionShorter": "Please pick a shorter display name", + "displayNameNew": "Pick a new display name", + "displayNameErrorNew": "We were unable to load your display name. Please enter a new display name to continue.", "onboardingAccountCreated": "Account Created", "onboardingBubbleWelcomeToSession": "Welcome to Session", "conversationsNone": "You don't have any conversations yet", diff --git a/ts/components/registration/stages/RestoreAccount.tsx b/ts/components/registration/stages/RestoreAccount.tsx index c77967c62..059f0675a 100644 --- a/ts/components/registration/stages/RestoreAccount.tsx +++ b/ts/components/registration/stages/RestoreAccount.tsx @@ -119,9 +119,9 @@ export const RestoreAccount = () => { ) : ( - {window.i18n('displayNamePick')} + {window.i18n('displayNameNew')} - {window.i18n('displayNameDescription')} + {window.i18n('displayNameErrorNew')} { onClick={recoverAndEnterDisplayName} text={window.i18n('continue')} disabled={ + // TODO Fix that even if there is an error we only care if there is something in the input check Create Account !( !!recoveryPhrase && !recoveryPhraseError && @@ -160,13 +161,11 @@ export const RestoreAccount = () => { width="100%" flexDirection="column" justifyContent="flex-start" - alignItems="center" - margin={'0 0 0 8px'} + alignItems="flex-start" >