// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {FormattedMessage} from 'react-intl'; import React from 'react'; export default class ChooseAuthPage extends React.Component { constructor(props) { super(props); this.state = {}; } render() { var buttons = []; if (global.window.mm_config.EnableSignUpWithGitLab === 'true') { buttons.push( ); } if (global.window.mm_config.EnableSignUpWithGoogle === 'true') { buttons.push( { e.preventDefault(); this.props.updatePage('google'); } } > ); } if (global.window.mm_config.EnableLdap === 'true') { buttons.push( { e.preventDefault(); this.props.updatePage('ldap'); } } > ); } if (global.window.mm_config.EnableSignUpWithEmail === 'true') { buttons.push( ); } if (buttons.length === 0) { buttons = ( ); } return (
{buttons}
); } } ChooseAuthPage.propTypes = { updatePage: React.PropTypes.func };