signin dispatch test

This commit is contained in:
geek 2017-07-20 18:04:54 +09:00
parent 8ba2bc5c3b
commit 3b433d9e16

View File

@ -69,7 +69,7 @@ export class SignIn extends React.Component<Props, State> {
<a style={{fontSize:10}} onClick={this.forgotPopupOpen}>Forgot Password</a>
</div>
<Form.Group>
<Button fluid primary style={{margin:'7'}} onClick={ this.signInClick }> Sign In </Button>
<Button fluid primary style={{margin:'7'}} onClick={ this.signInClick.bind(this) }> Sign In </Button>
<Button fluid style={{margin:'7'}} href='/#/test2'> Sign Up </Button>
</Form.Group>
</Form>
@ -123,7 +123,7 @@ export class SignIn extends React.Component<Props, State> {
sendComPopup: true,
});
};
}
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
this.props.onSignIn(this.state.email, this.state.pass);