more renaming
This commit is contained in:
@@ -13,13 +13,13 @@ function renderLogin({ submitLogin, submitRegister }) {
|
||||
className="login-input"
|
||||
type="email"
|
||||
placeholder="username"
|
||||
onChange={e => (details.name = e.target.value)}
|
||||
onInput={e => details.name = e.target.value}
|
||||
/>
|
||||
<input
|
||||
className="login-input"
|
||||
type="password"
|
||||
placeholder="password"
|
||||
onChange={e => (details.password = e.target.value)}
|
||||
onInput={e => details.password = e.target.value}
|
||||
/>
|
||||
<button
|
||||
className="login-btn"
|
||||
|
||||
@@ -9,6 +9,7 @@ const addState = connect(
|
||||
return ws.sendAccountLogin(name, password);
|
||||
}
|
||||
function submitRegister(name, password) {
|
||||
console.log(name, password);
|
||||
return ws.sendAccountCreate(name, password);
|
||||
}
|
||||
return { account: state.account, submitLogin, submitRegister };
|
||||
|
||||
@@ -13,7 +13,6 @@ class SpawnButton extends Component {
|
||||
}
|
||||
|
||||
handleInput(event) {
|
||||
console.log(event.target.value);
|
||||
this.setState({ value: event.target.value });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user