5000 time pushing

This commit is contained in:
Kfir 2020-01-17 15:19:32 +02:00
parent 3bd1ad52aa
commit 530a6fca38
2 changed files with 10 additions and 6 deletions

View file

@ -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} /> <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> <label className="custom-control-label" htmlFor="customCheck1">Remember password</label>
</div> </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" /> <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-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> */} <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> */}

View file

@ -17,13 +17,11 @@ class Main extends Component {
getEmail = (data) => { getEmail = (data) => {
let userData = data.target.value; let userData = data.target.value;
if (parseInt(userData[data.target.value.length-1])) { if (parseInt(userData[data.target.value.length-1],10)) {
console.log('If');
}else{ }else{
console.log('ELSE');
let tmp_state = this.state; let tmp_state = this.state;
tmp_state.userInputs.email = userData tmp_state.userInputs.email = userData;
this.setState(tmp_state) this.setState(tmp_state);
} }
} }
getPassword = (data) => { getPassword = (data) => {
@ -38,6 +36,11 @@ class Main extends Component {
this.setState(tmp_state) this.setState(tmp_state)
} }
postSignin = (data) => {
let tmp_state = this.state;
console.log(data);
}
render() { render() {
return ( return (
<div> <div>
@ -49,6 +52,7 @@ class Main extends Component {
getPassword={this.getPassword} getPassword={this.getPassword}
getRememberPass={this.getRememberPass} getRememberPass={this.getRememberPass}
validationClass={this.validInput} validationClass={this.validInput}
postSignin={this.postSignin}
/> />
</div> </div>