Created
June 4, 2016 06:14
-
-
Save davidgilbertson/65a0ad0be3c04ea37eb506c55ca28a51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| const {Component, PropTypes} = React; | |
| import styles from './styles.js'; | |
| class SignInModalBody extends Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| componentDidMount() { | |
| this.props.setModalState({ | |
| title: 'Sign in', | |
| width: 500, | |
| showOk: false, | |
| }); | |
| } | |
| render() { | |
| return ( | |
| <div> | |
| <p style={styles.title}>Choose your flavor</p> | |
| <button | |
| style={{...styles.button, ...styles.facebookButton}} | |
| onClick={this.signIn.bind(this, 'facebook')} | |
| >Facebook</button> | |
| <button | |
| style={{...styles.button, ...styles.googleButton}} | |
| onClick={this.signIn.bind(this, 'google')} | |
| >Google</button> | |
| <button | |
| style={{...styles.button, ...styles.twitterButton}} | |
| onClick={this.signIn.bind(this, 'twitter')} | |
| >Twitter</button> | |
| </div> | |
| ); | |
| } | |
| } | |
| SignInModalBody.propTypes = { | |
| setModalState: PropTypes.func.isRequired, | |
| }; | |
| export default SignInModalBody; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment