import { Container, Card, CardBody, Form, FormGroup, Label, Input, Button } from 'reactstrap'; import React from 'react'; import { connect } from 'react-redux'; import { login } from '../api'; export function Login(props) { return (

Login

); } 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 }); } } function Hint(props) { if(props.hint != null) { return (

{ props.hint }

); } else { return null; } }