import Head from 'next/head'; import React from 'react'; import { connect } from 'react-redux'; import { Button, Card, CardBody, Container, CustomInput, Fade, Form, FormGroup, Input, Label } from 'reactstrap'; import { TurniereNavigation } from '../js/components/Navigation'; import { Footer } from '../js/components/Footer'; import { UserRestrictor, Option } from '../js/components/UserRestrictor'; import { Login } from '../js/components/Login'; import { verifyCredentials } from '../js/api'; import EditableStringList from '../js/components/EditableStringList'; import '../static/everypage.css'; class PrivateCreatePage extends React.Component { componentDidMount() { verifyCredentials(); } render() { const { isSignedIn } = this.props; return ( ); } } function mapStateToCreatePageProperties(state) { const { isSignedIn } = state.userinfo; return { isSignedIn }; } const CreatePage = connect( mapStateToCreatePageProperties )(PrivateCreatePage); export default CreatePage; function CreateTournamentCard() { return (

Turnier erstellen

); } class CreateTournamentForm extends React.Component { constructor(props) { super(props); this.state = {fadeIn: false, teams: []}; this.toggle = this.toggle.bind(this); this.teamListUpdate = this.teamListUpdate.bind(this); } render() { return (

Teams

); } teamListUpdate(list) { this.setState({teams: list}); } toggle() { this.setState({ fadeIn: !this.state.fadeIn }); } }