Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Forked from davidgilbertson/SignIn.jsx
Created October 8, 2018 01:13
Show Gist options
  • Select an option

  • Save spac3unit/4a2459bc315eb64f2392a452efd923f6 to your computer and use it in GitHub Desktop.

Select an option

Save spac3unit/4a2459bc315eb64f2392a452efd923f6 to your computer and use it in GitHub Desktop.
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