Merge pull request #1168 from rgarmsen2295/plt-816

PLT-816 Fixed various React warnings during the team signup process
Этот коммит содержится в:
Corey Hulen
2015-10-24 09:25:13 -07:00
родитель db1834ce26 8f487412a8
Коммит b6e8720bad
3 изменённых файлов: 13 добавлений и 16 удалений

Просмотреть файл

@@ -15,11 +15,6 @@ export default class TeamSignupSendInvitesPage extends React.Component {
this.state = { this.state = {
emailEnabled: global.window.mm_config.SendEmailNotifications === 'true' emailEnabled: global.window.mm_config.SendEmailNotifications === 'true'
}; };
if (!this.state.emailEnabled) {
this.props.state.wizard = 'username';
this.props.updateParent(this.props.state);
}
} }
submitBack(e) { submitBack(e) {
e.preventDefault(); e.preventDefault();

Просмотреть файл

@@ -54,7 +54,11 @@ export default class TeamSignupUrlPage extends React.Component {
if (data) { if (data) {
this.setState({nameError: 'This URL is unavailable. Please try another.'}); this.setState({nameError: 'This URL is unavailable. Please try another.'});
} else { } else {
this.props.state.wizard = 'send_invites'; if (global.window.mm_config.SendEmailNotifications === 'true') {
this.props.state.wizard = 'send_invites';
} else {
this.props.state.wizard = 'username';
}
this.props.state.team.type = 'O'; this.props.state.team.type = 'O';
this.props.state.team.name = name; this.props.state.team.name = name;

Просмотреть файл

@@ -104,21 +104,19 @@ export default class TeamSignupWelcomePage extends React.Component {
return ( return (
<div> <div>
<p> <img
<img className='signup-team-logo'
className='signup-team-logo' src='/static/images/logo.png'
src='/static/images/logo.png' />
/> <h3 className='sub-heading'>Welcome to:</h3>
<h3 className='sub-heading'>Welcome to:</h3> <h1 className='margin--top-none'>{global.window.mm_config.SiteName}</h1>
<h1 className='margin--top-none'>{global.window.mm_config.SiteName}</h1>
</p>
<p className='margin--less'>Let's set up your new team</p> <p className='margin--less'>Let's set up your new team</p>
<p> <div>
Please confirm your email address:<br /> Please confirm your email address:<br />
<div className='inner__content'> <div className='inner__content'>
<div className='block--gray'>{this.props.state.team.email}</div> <div className='block--gray'>{this.props.state.team.email}</div>
</div> </div>
</p> </div>
<p className='margin--extra color--light'> <p className='margin--extra color--light'>
Your account will administer the new team site. <br /> Your account will administer the new team site. <br />
You can add other administrators later. You can add other administrators later.