From da4b5ac2e5df55b2beabb187143d07cb56e8ea3c Mon Sep 17 00:00:00 2001 From: JP1998 Date: Wed, 29 May 2019 04:03:32 +0200 Subject: [PATCH] Adjust DominanceShower to the actually implemented API data --- js/components/DominanceShower.js | 4 +--- pages/tournament-statistics.js | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/components/DominanceShower.js b/js/components/DominanceShower.js index 405a700..01dc571 100644 --- a/js/components/DominanceShower.js +++ b/js/components/DominanceShower.js @@ -6,8 +6,6 @@ import { Table } from 'reactstrap'; -import { findTeam } from '../utils/findTeam'; - export class DominanceShower extends React.Component { render() { @@ -18,7 +16,7 @@ export class DominanceShower extends React.Component { - + diff --git a/pages/tournament-statistics.js b/pages/tournament-statistics.js index 23008c1..a9e765c 100644 --- a/pages/tournament-statistics.js +++ b/pages/tournament-statistics.js @@ -21,6 +21,7 @@ class StatisticsTournamentPage extends React.Component { } render() { + /* let tournamentStatistics = { tournament: { code: 'abcd1234', @@ -185,6 +186,7 @@ class StatisticsTournamentPage extends React.Component { points_received: 103 } }; + */ return (
@@ -198,10 +200,10 @@ class StatisticsTournamentPage extends React.Component {
- + - +
{findTeam(this.props.teams, this.props.stats.id).name}{this.props.stats.team_name}
{this.props.stats.points_made}