let still_waiting = null;
const judging_players = Object.keys(this.props.players_judging);
if (judging_players.length) {
- still_waiting = [
- <p>
- Still waiting for the following player
- {judging_players.length > 1 ? 's' : '' }
- :
- </p>,
- <ul>
- {judging_players.map(player => {
- return (
- <li
- key={player}
- >
- {player}
- {this.props.players_judging[player] ?
- <span className="typing"/> : null }
- </li>
- );
- })}
- </ul>
- ];
+ still_waiting = (
+ <div>
+ <p>
+ Still waiting for the following player
+ {judging_players.length > 1 ? 's' : '' }
+ :
+ </p>
+ <ul>
+ {judging_players.map(player => {
+ return (
+ <li
+ key={player}
+ >
+ {player}
+ {this.props.players_judging[player] ?
+ <span className="typing"/> : null }
+ </li>
+ );
+ })}
+ </ul>
+ </div>
+ );
}
if (this.props.players_judged.has(this.props.player.name)) {
let still_waiting = null;
const answering_players = Object.keys(this.props.players_answering);;
if (answering_players.length) {
- still_waiting = [
- <p>
- Still waiting for the following player
- {answering_players.length > 1 ? 's' : ''}
- :
- </p>,
- <ul>
- {answering_players.map(player => {
- return (
- <li
- key={player}
- >
- {player}
- {this.props.players_answering[player] ?
- <span className="typing"/> : null }
- </li>
- );
- })}
- </ul>
- ];
+ still_waiting = (
+ <div>
+ <p>
+ Still waiting for the following player
+ {answering_players.length > 1 ? 's' : ''}
+ :
+ </p>
+ <ul>
+ {answering_players.map(player => {
+ return (
+ <li
+ key={player}
+ >
+ {player}
+ {this.props.players_answering[player] ?
+ <span className="typing"/> : null }
+ </li>
+ );
+ })}
+ </ul>
+ </div>
+ );
}
if (this.props.players_answered.has(this.props.player.name)) {