// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. var Constants = require('../utils/constants.jsx'); export default class ChooseAuthPage extends React.Component { constructor(props) { super(props); this.state = {}; } render() { var buttons = []; if (this.props.services.indexOf(Constants.GITLAB_SERVICE) !== -1) { buttons.push( Create new {strings.Team} with GitLab Account ); } if (this.props.services.indexOf(Constants.EMAIL_SERVICE) !== -1) { buttons.push( Create new {strings.Team} with email address ); } if (buttons.length === 0) { buttons = No sign-up methods configured, please contact your system administrator.; } return (
{buttons}
{'Find my ' + strings.Team}
); } } ChooseAuthPage.defaultProps = { services: [] }; ChooseAuthPage.propTypes = { services: React.PropTypes.array, updatePage: React.PropTypes.func };