Skip to content

Commit

Permalink
https://github.com/cschleiden/imperaplus-client/issues/30
Browse files Browse the repository at this point in the history
  • Loading branch information
renebaudisch committed Jan 19, 2020
1 parent 2ebd171 commit 42ba8f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/play/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class Header extends React.Component<IHeaderProps & IHeaderDispatchProps> {
<Timer key={`${game.id}-${game.turnCounter}`} startInMs={game.timeoutSecondsLeft * 1000} />
</div>

{/* max. moves */}
<div className="play-header-block full-text hidden-xs">
{this._renderMoves()}
</div>

{/* Cards */}
<div className="play-header-block hidden-xs">
{this._renderCards()}
Expand Down Expand Up @@ -224,6 +229,12 @@ class Header extends React.Component<IHeaderProps & IHeaderDispatchProps> {
);
}

private _renderMoves() {
return (
<span>{__("max. moves:")} {this.props.game.options.movesPerTurn}</span>
);
}

private _renderCards() {
const { game, player } = this.props;

Expand Down

0 comments on commit 42ba8f4

Please sign in to comment.