import Head from 'next/head'; import React from 'react'; import {connect} from 'react-redux'; import { Col, Container, Row } from 'reactstrap'; import {TurniereNavigation} from '../js/components/Navigation'; import {TournamentInformationView} from '../js/components/TournamentInformationView'; import {BigImage} from '../js/components/BigImage'; import {StandingsTable} from '../js/components/StandingsTable'; import {DominanceShower} from '../js/components/DominanceShower'; import {Footer} from '../js/components/Footer'; import {requestTournamentStatistics} from '../js/api'; class StatisticsTournamentPage extends React.Component { static async getInitialProps({query}) { return {query}; } componentDidMount() { requestTournamentStatistics(this.props.query.code, () => {}, () => {}); } render() { const {tournamentStatistics} = this.props; return (
{tournamentStatistics.name}: turnie.re
); } } function StatisticsView(props) { if (props.tournamentStatistics.statistics_available) { return (
); } else { return (

Statistiken sind für dieses Turnier leider nicht verfügbar.

); } } function mapTournamentStatisticsToProps(state) { const {tournamentStatistics} = state; return {tournamentStatistics}; } export default connect( mapTournamentStatisticsToProps )(StatisticsTournamentPage);