|
|
|
@ -1026,6 +1026,7 @@ class Action extends React.Component {
|
|
|
|
|
.find(p => p.player.name === this.props.game.currentPlayer).player;
|
|
|
|
|
switch (this.props.ui.action) {
|
|
|
|
|
case 'otb':
|
|
|
|
|
if (this.props.player.name === this.props.game.currentPlayer) {
|
|
|
|
|
view = (
|
|
|
|
|
<div className='game-card'>
|
|
|
|
|
<GroupBox title={itemCard}>
|
|
|
|
@ -1034,6 +1035,13 @@ class Action extends React.Component {
|
|
|
|
|
</GroupBox>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
view = (
|
|
|
|
|
<div>
|
|
|
|
|
<p>{currentPlayer.name} drew an {itemCard}</p>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
buttons = (<Button onClick={() => this.props.showNextAction()}>Continue</Button>);
|
|
|
|
|
break;
|
|
|
|
|
case 'farmers-fate':
|
|
|
|
@ -1262,7 +1270,7 @@ class AlertOverlay extends React.Component {
|
|
|
|
|
{this.props.children}
|
|
|
|
|
<br />
|
|
|
|
|
<Button onClick={this.buttonClick}>{this.props.buttonText}</Button>
|
|
|
|
|
<label><input type='checkbox' /> {`Don't show again`}</label>
|
|
|
|
|
<label><input type='checkbox' onClick={this.hidePermanent} /> {`Don't show again`}</label>
|
|
|
|
|
<a href='#' onClick={this.hide}>close</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|