From e3ab89e1c47b9228f3a914a994e1244d1e61d93b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 17 Feb 2016 10:32:22 -0500 Subject: [PATCH] Added help text to sso switching and removed redundant divs --- web/react/components/claim/claim_account.jsx | 6 +- web/react/components/claim/email_to_sso.jsx | 111 +++++++++--------- web/react/components/claim/sso_to_email.jsx | 116 +++++++++---------- web/static/i18n/en.json | 3 +- 4 files changed, 119 insertions(+), 117 deletions(-) diff --git a/web/react/components/claim/claim_account.jsx b/web/react/components/claim/claim_account.jsx index 87026b7627..5b3b584eed 100644 --- a/web/react/components/claim/claim_account.jsx +++ b/web/react/components/claim/claim_account.jsx @@ -43,11 +43,7 @@ export default class ClaimAccount extends React.Component { ); } - return ( -
- {content} -
- ); + return content; } } diff --git a/web/react/components/claim/email_to_sso.jsx b/web/react/components/claim/email_to_sso.jsx index 3d4b9e91fc..87e86697cf 100644 --- a/web/react/components/claim/email_to_sso.jsx +++ b/web/react/components/claim/email_to_sso.jsx @@ -70,62 +70,69 @@ class EmailToSSO extends React.Component { const uiType = Utils.toTitleCase(this.props.type) + ' SSO'; return ( -
-
-

+
+

+ +

+
+

+

+

+ +

+

+ +

+
+ +
+ {error} +

- -

- -

-

- -

-
- -
- {error} - - -
+ +
); } @@ -141,4 +148,4 @@ EmailToSSO.propTypes = { teamDisplayName: React.PropTypes.string.isRequired }; -export default injectIntl(EmailToSSO); \ No newline at end of file +export default injectIntl(EmailToSSO); diff --git a/web/react/components/claim/sso_to_email.jsx b/web/react/components/claim/sso_to_email.jsx index 73ff13cc94..74137082a9 100644 --- a/web/react/components/claim/sso_to_email.jsx +++ b/web/react/components/claim/sso_to_email.jsx @@ -86,69 +86,67 @@ class SSOToEmail extends React.Component { const uiType = Utils.toTitleCase(this.props.currentType) + ' SSO'; return ( -
-
-

+
+

+ +

+
+

+

+

+ +

+
+ +
+
+ +
+ {error} +

- -

- -

-

- -

-
- -
-
- -
- {error} - - -
+ +
); } @@ -164,4 +162,4 @@ SSOToEmail.propTypes = { teamDisplayName: React.PropTypes.string.isRequired }; -export default injectIntl(SSOToEmail); \ No newline at end of file +export default injectIntl(SSOToEmail); diff --git a/web/static/i18n/en.json b/web/static/i18n/en.json index 984f16f29d..d980885a38 100644 --- a/web/static/i18n/en.json +++ b/web/static/i18n/en.json @@ -548,6 +548,7 @@ "claim.email_to_sso.pwd": "Password", "claim.email_to_sso.title": "Switch Email/Password Account to {uiType}", "claim.email_to_sso.ssoType": "Upon claiming your account, you will only be able to login with {type} SSO", + "claim.email_to_sso.ssoNote": "You must already have a valid {type} account", "claim.email_to_sso.enterPwd": "Enter the password for your {team} {site} account", "claim.email_to_sso.switchTo": "Switch account to {uiType}", "claim.sso_to_email.enterPwd": "Please enter a password.", @@ -1269,4 +1270,4 @@ "intro_messages.beginning": "Beginning of {name}", "intro_messages.invite": "Invite others to this {type}", "intro_messages.setHeader": "Set a Header" -} \ No newline at end of file +}