Requiring player name and game name.
This commit is contained in:
@@ -119,6 +119,7 @@ class NewGame extends React.Component {
|
|||||||
<Col width='12'>
|
<Col width='12'>
|
||||||
<label>Game Name
|
<label>Game Name
|
||||||
<input type='text' name='gameName' value={this.state.gameName}
|
<input type='text' name='gameName' value={this.state.gameName}
|
||||||
|
required
|
||||||
onChange={this.handleInputChange} />
|
onChange={this.handleInputChange} />
|
||||||
</label>
|
</label>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -134,6 +135,7 @@ class NewGame extends React.Component {
|
|||||||
<Col width='12'>
|
<Col width='12'>
|
||||||
<label>Your Name
|
<label>Your Name
|
||||||
<input type='text' name='playerName'
|
<input type='text' name='playerName'
|
||||||
|
required
|
||||||
value={this.state.playerName}
|
value={this.state.playerName}
|
||||||
onChange={this.handleInputChange} />
|
onChange={this.handleInputChange} />
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user