diff --git a/README.md b/README.md index de9874c..ebbdbac 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,5 @@ The built container exposes port 80. # Todo -Timer in topnav \ No newline at end of file +Timer in topnav +showMatches={playoffStages !== null} showmatches in GroupStage mittlerweile vmtl useless weil immer eingeklappt \ No newline at end of file diff --git a/js/components/GroupStage.js b/js/components/GroupStage.js index ba47bdb..f546a46 100644 --- a/js/components/GroupStage.js +++ b/js/components/GroupStage.js @@ -29,6 +29,7 @@ export default class GroupStage extends Component { isSignedIn={this.props.isSignedIn} isOwner={this.props.isOwner} groupRef={this.groupRefs[group.id]} + teams={this.props.teams} /> ))} @@ -112,7 +113,7 @@ export class Group extends Component { /> ))} - + @@ -133,16 +134,25 @@ function GroupScoresTable(props) { - {props.scores.map(groupScore => )} + {props.scores.map(groupScore => ( + + ))} ); } function GroupScoresTableRow(props) { + const advancingTeam = props.teams?.find(team => team.id === props.score.team.id && team.advancing_from_group_stage); + const rowClass = advancingTeam ? 'table-success' : ''; const teamId = `favorite-team-groupstage-${props.score.team.id}`; + return ( - + {props.score.position} {props.score.team.name} {props.score.group_points} diff --git a/pages/tournament-fullscreen-groups.js b/pages/tournament-fullscreen-groups.js index a564142..cd05e26 100644 --- a/pages/tournament-fullscreen-groups.js +++ b/pages/tournament-fullscreen-groups.js @@ -24,7 +24,7 @@ function FullscreenPage(props) { return (
- {props.groups.map(group => )} + {props.groups.map(group => )}