// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. export default class ChooseAuthPage extends React.Component { constructor(props) { super(props); this.state = {}; } render() { var buttons = []; if (global.window.config.EnableSignUpWithGitLab === 'true') { buttons.push( {'Create new team with GitLab Account'} ); } if (global.window.config.EnableSignUpWithEmail === 'true') { buttons.push( {'Create new team with email address'} ); } if (buttons.length === 0) { buttons = {'No sign-up methods configured, please contact your system administrator.'}; } return (
{buttons}
{'Find my teams'}
); } } ChooseAuthPage.propTypes = { updatePage: React.PropTypes.func };