import React from 'react'; import { Button, Card, CardBody, Collapse, Table } from 'reactstrap'; import {rangedmap} from '../utils/rangedmap'; export class StandingsTable extends React.Component { constructor(props) { super(props); this.state = { showFullTable: false }; this.toggleShowFullTable = this.toggleShowFullTable.bind(this); } render() { const performances = this.props.data.group_phase_performances; return (

Aktuelle Rangliste

{ rangedmap(performances, (team, index) => ( ), 0, 3) } { rangedmap(performances, (team, index) => ( ), 3) }
# Team Name Match Differenz Punkt Differenz
); } toggleShowFullTable() { this.setState({showFullTable: !this.state.showFullTable}); } } class TeamRow extends React.Component { constructor(props) { super(props); } render() { return ( { this.props.teamToShow.rank } { this.props.teamToShow.team_name } { this.props.teamToShow.win_loss_differential } { this.props.teamToShow.point_differential } ); } } class TableButton extends React.Component { render() { const {isFullTableShown} = this.props; if (isFullTableShown) { return ; } else { return ; } } }