5000 time pushing
This commit is contained in:
parent
3bd1ad52aa
commit
530a6fca38
2 changed files with 10 additions and 6 deletions
|
@ -29,7 +29,7 @@ class LoginForm extends React.Component {
|
|||
<input type="checkbox" className="custom-control-input" id="customCheck1" onChange={this.props.getRememberPass.bind(this)} checked={this.props.rememberPass} />
|
||||
<label className="custom-control-label" htmlFor="customCheck1">Remember password</label>
|
||||
</div>
|
||||
<button className="btn btn-lg btn-primary btn-block text-uppercase" >Sign in</button>
|
||||
<button className="btn btn-lg btn-primary btn-block text-uppercase" onClick={this.props.postSignin.bind(this)} >Sign in</button>
|
||||
<hr className="my-4" />
|
||||
{/* <button className="btn btn-lg btn-google btn-block text-uppercase" type="submit"><i className="fab fa-google mr-2"></i> Sign in with Google</button>
|
||||
<button className="btn btn-lg btn-facebook btn-block text-uppercase" type="submit"><i className="fab fa-facebook-f mr-2"></i> Sign in with Facebook</button> */}
|
||||
|
|
|
@ -17,13 +17,11 @@ class Main extends Component {
|
|||
|
||||
getEmail = (data) => {
|
||||
let userData = data.target.value;
|
||||
if (parseInt(userData[data.target.value.length-1])) {
|
||||
console.log('If');
|
||||
if (parseInt(userData[data.target.value.length-1],10)) {
|
||||
}else{
|
||||
console.log('ELSE');
|
||||
let tmp_state = this.state;
|
||||
tmp_state.userInputs.email = userData
|
||||
this.setState(tmp_state)
|
||||
tmp_state.userInputs.email = userData;
|
||||
this.setState(tmp_state);
|
||||
}
|
||||
}
|
||||
getPassword = (data) => {
|
||||
|
@ -38,6 +36,11 @@ class Main extends Component {
|
|||
this.setState(tmp_state)
|
||||
}
|
||||
|
||||
postSignin = (data) => {
|
||||
let tmp_state = this.state;
|
||||
console.log(data);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
|
@ -49,6 +52,7 @@ class Main extends Component {
|
|||
getPassword={this.getPassword}
|
||||
getRememberPass={this.getRememberPass}
|
||||
validationClass={this.validInput}
|
||||
postSignin={this.postSignin}
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue