import Head from 'next/head'; import '../static/everypage.css'; import {Footer, TurniereNavigation} from '../js/CommonComponents'; import React from 'react'; import { Button, Card, CardBody, Container, Form, FormGroup, Input, Label } from 'reactstrap'; import { login } from '../js/api'; import { connect } from 'react-redux'; export default () => (
Login: turnie.re
); function Login() { return (

Login

Account anlegen Warum ist ein Account nötig?
); } class LoginErrorList extends React.Component { render() { const { error, errorMessages } = this.props; if(error) { return ( ); } else { return null; } } } const mapStateToErrorMessages = (state) => { const { errorMessages, error } = state.userinfo; return { errorMessages, error }; }; const VisibleLoginErrorList = connect( mapStateToErrorMessages )(LoginErrorList); class LoginForm extends React.Component { constructor(props) { super(props); this.state = { email : '', password : '' }; } render() { return (
); } handlePasswordInput(input) { this.setState({ password : input.target.value }); } handleEmailInput(input) { this.setState({ email : input.target.value }); } }