Showing player color in lobby.
This commit is contained in:
@@ -1936,6 +1936,7 @@ class StartGame extends React.Component {
|
||||
render() {
|
||||
const { auditThreshold, downPayment, loanInterest, maxDebt, startingOtbs, startingCash, startingDebt } = this.props.game.settings;
|
||||
const playerName = this.props.player.name;
|
||||
const { color } = this.props.player;
|
||||
const { name, host } = this.props.game;
|
||||
return (
|
||||
<>
|
||||
@@ -1945,10 +1946,10 @@ class StartGame extends React.Component {
|
||||
</p>
|
||||
<h3>Players</h3>
|
||||
<ul>
|
||||
<li>{this.props.player.name}</li>
|
||||
<li><PlayerColorIcon color={color} /> {playerName}</li>
|
||||
{this.props.game.otherPlayers.map((p, i) => (
|
||||
<li key={i}>
|
||||
{p.player.name}
|
||||
<PlayerColorIcon color={p.player.color} /> {p.player.name}
|
||||
{playerName === host ? (
|
||||
<span title="Kick Player" className="kick-player" onClick={() => kickPlayer(p.player.name)}>
|
||||
<FontAwesomeIcon icon={faBan} />
|
||||
|
||||
Reference in New Issue
Block a user