diff -r 56850f5c73f6 -r cfcbf4bc66f1 client/src/components/Register.js --- a/client/src/components/Register.js Wed Jul 18 17:32:09 2018 +0200 +++ b/client/src/components/Register.js Tue Aug 14 20:34:50 2018 +0200 @@ -1,8 +1,8 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { Grid, Row, Col, Panel, FormGroup, ControlLabel, FormControl, Button, HelpBlock } from 'react-bootstrap'; import '../App.css'; +import './Register.css'; import Navbar from './Navbar'; import * as authActions from '../actions/authActions'; @@ -31,56 +31,55 @@ renderErrorMessage(errorMessages, fieldname) { if (errorMessages && errorMessages.has(fieldname)) { return errorMessages.get(fieldname).map((message, key) => - { message } +

{ message }

); } } render() { - const panelHeader = ( -

Register

- ) - const errorMessages = this.props.register.get('errorMessages'); return (
- - - - -
- - Username - { this.username = ref; }} /> - { this.renderErrorMessage(errorMessages, 'username') } - - - Email - { this.email = ref; }} /> - { this.renderErrorMessage(errorMessages, 'email') } - - - Password - { this.password1 = ref; }} /> - { this.renderErrorMessage(errorMessages, 'password1') } - - - Confirm password - { this.password2 = ref; }} /> - { this.renderErrorMessage(errorMessages, 'password2') } - - -
-
+
+
+
+
+
+

IRI Notes

+
+
+ + { this.username = ref; }} /> + { this.renderErrorMessage(errorMessages, 'username') } +
+
+ + { this.email = ref; }} /> + { this.renderErrorMessage(errorMessages, 'email') } +
+
+ + { this.password1 = ref; }} /> + { this.renderErrorMessage(errorMessages, 'password1') } +
+
+ + { this.password2 = ref; }} /> + { this.renderErrorMessage(errorMessages, 'password2') } +
+ +
+
+

- Already registered? Sign in. + Déjà inscrit ? Se connecter.

- - - +
+
+
); }