Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Temporarily remove GitHub login
Browse files Browse the repository at this point in the history
fbshipit-source-id: 49a87f5
  • Loading branch information
fson authored and expbot committed Mar 9, 2018
1 parent 933e6cd commit 1e86f96
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions src/ui/auth/components/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type LoginFormData = {
type Props = {
isLoggingIn: boolean,
currentLoginMethod: ?string,
onLogin: (loginType: 'user-pass' | 'github', formData?: LoginFormData) => void | Promise<void>,
onLogin: (loginType: 'user-pass', formData?: LoginFormData) => void | Promise<void>,
};

export default class LoginForm extends React.Component {
Expand Down Expand Up @@ -63,17 +63,6 @@ export default class LoginForm extends React.Component {
)}>
Sign In
</Button>
<Button
styles={[styles.button, styles.githubButton]}
type="button"
onClick={this._onGithubClick}
disabled={this.props.isLoggingIn}
isLoading={this.props.isLoggingIn && this.props.currentLoginMethod === 'github'}
renderRightIcon={() => (
<img key="right" src="./arrow.svg" className={css(styles.svgArrow)} />
)}>
Sign In With Github
</Button>
</div>
<div
style={{
Expand Down Expand Up @@ -105,18 +94,6 @@ export default class LoginForm extends React.Component {
);
}

_onFacebookClick = () => {
this.props.onLogin('facebook');
};

_onGithubClick = () => {
this.props.onLogin('github');
};

_onGoogleClick = () => {
this.props.onLogin('google');
};

_onSubmitLogin = async (e: any) => {
e.preventDefault();

Expand Down Expand Up @@ -170,11 +147,6 @@ const styles = StyleSheet.create({
marginBottom: 20,
},

githubButton: {
color: 'black',
backgroundColor: 'rgba(0, 0, 0, .1);',
},

svgArrow: {
width: 15,
height: 15,
Expand Down

0 comments on commit 1e86f96

Please sign in to comment.