From 53e495cf335d3c6b44361627288db252aae1f4ad Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 28 Jan 2016 16:16:39 -0300 Subject: PLT-7: Refactoring frontend (chunk 4) --- web/react/components/signup_team.jsx | 43 +++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) (limited to 'web/react/components/signup_team.jsx') diff --git a/web/react/components/signup_team.jsx b/web/react/components/signup_team.jsx index a554427d5..098e9f65a 100644 --- a/web/react/components/signup_team.jsx +++ b/web/react/components/signup_team.jsx @@ -6,6 +6,8 @@ import EmailSignUpPage from './team_signup_with_email.jsx'; import SSOSignupPage from './team_signup_with_sso.jsx'; import Constants from '../utils/constants.jsx'; +import {FormattedMessage} from 'mm-intl'; + export default class TeamSignUp extends React.Component { constructor(props) { super(props); @@ -43,12 +45,24 @@ export default class TeamSignUp extends React.Component { if (global.window.mm_config.EnableTeamListing === 'true') { if (this.props.teams.length === 0) { if (global.window.mm_config.EnableTeamCreation !== 'true') { - teamListing = (
{'There are no teams include in the Team Directory and team creation has been disabled.'}
); + teamListing = ( +
+ +
+ ); } } else { teamListing = (
-

{'Choose a Team'}

+

+ +

{ this.props.teams.map((team) => { @@ -71,7 +85,12 @@ export default class TeamSignUp extends React.Component { }) }
-

{'Or Create a Team'}

+

+ +

); } @@ -79,7 +98,14 @@ export default class TeamSignUp extends React.Component { if (global.window.mm_config.EnableTeamCreation !== 'true') { if (teamListing == null) { - return (
{'Team creation has been disabled. Please contact an administrator for access.'}
); + return ( +
+ +
+ ); } return ( @@ -122,7 +148,14 @@ export default class TeamSignUp extends React.Component { ); } else if (this.state.page === 'none') { - return (
{'No team creation method has been enabled. Please contact an administrator for access.'}
); + return ( +
+ +
+ ); } } } -- cgit v1.2.3-1-g7c22