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