Notification at end of winter to complete purchasing.

logins
Thomas Hintz 5 years ago
parent 990b0c533f
commit 3601b6776c

@ -357,7 +357,7 @@ class PlayerTurnContainer extends React.Component {
render() { render() {
let view; let view;
const player = this.props.player, const { player, ui } = this.props,
worth = netWorth(player), worth = netWorth(player),
auditButton = (this.props.game.calledAudit === false && worth >= this.props.game.settings.auditThreshold) ? ( auditButton = (this.props.game.calledAudit === false && worth >= this.props.game.settings.auditThreshold) ? (
<Button onClick={audit}>Call Audit</Button>) : ''; <Button onClick={audit}>Call Audit</Button>) : '';
@ -401,10 +401,25 @@ class PlayerTurnContainer extends React.Component {
Watch {this.props.game.currentPlayer}&apos;s turn Watch {this.props.game.currentPlayer}&apos;s turn
</Button>); </Button>);
} }
const space = ui.playerSpaces[player.color];
return ( return (
<Row> <Row>
<Col width='12'> <Col width='12'>
<div className='turn-container'> <div className='turn-container'>
{ space >= 9 && space <= 14 ? (
<>
<div>
Recommendation:
</div>
<div>
<Button className="tiny"
onClick={() => this.props.showScreen(SCREENS.cards)}>
Complete Purchasing
</Button> before next roll
</div>
<br />
</>
) : (<></>)}
{view} {view}
</div> </div>
</Col> </Col>
@ -2213,6 +2228,11 @@ class Card extends React.Component {
</Col> </Col>
</Row> </Row>
) : (<></>)} ) : (<></>)}
<Row collapse='true'>
<Col width="12">
<label className="small-text"><input type="checkbox" /> Reveal for trading</label>
</Col>
</Row>
</form> </form>
</div>); break; </div>); break;

@ -687,12 +687,6 @@ $trade-margin: 3rem;
.tab.show { .tab.show {
display: block; } display: block; }
.turn-container {
position: relative;
height: 56px;
padding: 0.5rem;
width: 100%; }
.turn-container .button { .turn-container .button {
margin: 0; } margin: 0; }

Loading…
Cancel
Save