diff --git a/js/components/Match.js b/js/components/Match.js index 7396122..fcdeaee 100644 --- a/js/components/Match.js +++ b/js/components/Match.js @@ -127,7 +127,7 @@ export class Match extends React.Component {
- + {groupInformation} diff --git a/js/components/MatchTable.js b/js/components/MatchTable.js index 5fa509a..dc21bb1 100644 --- a/js/components/MatchTable.js +++ b/js/components/MatchTable.js @@ -41,13 +41,16 @@ export function MatchTable(props) { ); } else { + const team1Id = `favorite-team-level-${props.stageLevel}-${props.match.team1.id}`; + const team2Id = `favorite-team-level-${props.stageLevel}-${props.match.team1.id}`; + return ( - + - + )))} + + + )))} );
{props.match.team1.score} {props.match.team1.name}
{props.match.team2.score} {props.match.team2.name} diff --git a/js/components/PlayoffStages.js b/js/components/PlayoffStages.js index 79fe6b6..ddc3f13 100644 --- a/js/components/PlayoffStages.js +++ b/js/components/PlayoffStages.js @@ -50,7 +50,7 @@ export class PlayoffStages extends Component { return (
{this.props.playoffStages.map(stage => this.updateNextStage(stage.id)} - level={getLevelName(stage.level)} matches={stage.matches} + level={getLevelName(stage.level)} matches={stage.matches} stageLevel={stage.level} key={stage.level}/>)}
); } diff --git a/js/components/Stage.js b/js/components/Stage.js index a91a328..97f6cfd 100644 --- a/js/components/Stage.js +++ b/js/components/Stage.js @@ -3,15 +3,22 @@ import {Match} from './Match'; import React from 'react'; export function Stage(props) { - const {isSignedIn, isOwner, updateNextStage} = props; + const {isSignedIn, isOwner, updateNextStage, stageLevel} = props; return (

{props.level}

{props.matches.map((match => ( -