More general description for the account choosing state

This commit is contained in:
ErickSkrauch 2018-03-14 15:13:16 +03:00
parent 16d11de977
commit fe4c386dfc
2 changed files with 12 additions and 7 deletions

View File

@ -2,5 +2,6 @@
"chooseAccountTitle": "Choose an account",
"addAccount": "Log into another account",
"logoutAll": "Log out from all accounts",
"description": "You have logged in into multiple accounts. Please choose the one, you want to use to authorize {appName}"
"pleaseChooseAccount": "Please select an account you're willing to use",
"pleaseChooseAccountForApp": "Please select an account that you want to use to authorize {appName}"
}

View File

@ -19,13 +19,17 @@ export default class ChooseAccountBody extends BaseAuthBody {
<div>
{this.renderErrors()}
{client && (
<div className={styles.description}>
<Message {...messages.description} values={{
appName: <span className={styles.appName}>{client.name}</span>
<div className={styles.description}>
{client ? (
<Message {...messages.pleaseChooseAccountForApp} values={{
appName: <span className={styles.appName}>{client.name}</span>,
}} />
</div>
)}
) : (
<div className={styles.description}>
<Message {...messages.pleaseChooseAccount} />
</div>
)}
</div>
<div className={styles.accountSwitcherContainer}>
<AccountSwitcher