diff -r 06f609adfbf8 -r 990f2c928b15 client/src/components/Register.js --- a/client/src/components/Register.js Mon Jun 26 15:45:50 2017 +0200 +++ b/client/src/components/Register.js Mon Jun 26 16:43:22 2017 +0200 @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { Grid, Row, Col, Panel, FormGroup, ControlLabel, FormControl, Button, Alert, HelpBlock } from 'react-bootstrap'; +import { Grid, Row, Col, Panel, FormGroup, ControlLabel, FormControl, Button, HelpBlock } from 'react-bootstrap'; import '../App.css'; import Navbar from './Navbar'; import * as authActions from '../actions/authActions'; @@ -22,12 +22,6 @@ this.props.history.push('/login'); } - renderError() { - return ( - Bad credentials - ) - } - renderErrorMessage(errorMessages, fieldname) { if (errorMessages && errorMessages.has(fieldname)) { return errorMessages.get(fieldname).map((message, key) =>