Skip to content
Snippets Groups Projects
Commit 8463ac78 authored by Joni Laukka's avatar Joni Laukka
Browse files

The X in new game and edit game form now closes the form

parent da5dc070
No related branches found
No related tags found
2 merge requests!26Development,!22Join, edit game form
......@@ -23,7 +23,7 @@ export default class GameSidebar extends React.Component {
</button>
)}
{this.state.form === "newgame" && (
<NewGameForm view="" toggleView={this.toggleView} />
<NewGameForm view="" toggleView={() => this.toggleView("")} />
)}
</div>
);
......
......@@ -98,6 +98,7 @@ export class LoginForm extends React.Component {
value={this.state.username}
onChange={this.handleChange}
id="loginUsernameInput"
autoFocus
/>
<br />
<input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment