-
-
Save spac3unit/4a2459bc315eb64f2392a452efd923f6 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'; | |
| import ModalWrapper from '../ModalWrapper.jsx'; | |
| const SignIn = props => { | |
| const signIn = provider => { | |
| props.hideModal(); | |
| props.signIn(provider); | |
| }; | |
| return ( | |
| <ModalWrapper | |
| {...props} | |
| title="Sign in" | |
| width={400} | |
| showOk={false} | |
| > | |
| <p>Choose your flavor</p> | |
| <button onClick={() => signIn('facebook')}>Facebook</button> | |
| <button onClick={() => signIn('google')}>Google</button> | |
| <button onClick={() => signIn('twitter')}>Twitter</button> | |
| </ModalWrapper> | |
| ); | |
| }; | |
| export default SignIn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment