Requiring player name and game name.

This commit is contained in:
2020-04-03 12:53:16 -07:00
parent 19c753fa60
commit 7c57682d3d

View File

@@ -119,6 +119,7 @@ class NewGame extends React.Component {
<Col width='12'>
<label>Game Name
<input type='text' name='gameName' value={this.state.gameName}
required
onChange={this.handleInputChange} />
</label>
</Col>
@@ -134,6 +135,7 @@ class NewGame extends React.Component {
<Col width='12'>
<label>Your Name
<input type='text' name='playerName'
required
value={this.state.playerName}
onChange={this.handleInputChange} />
</label>