diff --git a/app/src/frontend/building-edit.js b/app/src/frontend/building-edit.js index 0d954fa9..b4a6d304 100644 --- a/app/src/frontend/building-edit.js +++ b/app/src/frontend/building-edit.js @@ -81,8 +81,8 @@ class BuildingEdit extends Component { if (res.error) { this.setState({error: res.error}) } else { - this.props.selectBuilding(this.state); - this.props.history.push(`/building/${this.props.id}.html`) + this.props.selectBuilding(this.state); // could use server response? + this.props.history.push(`/building/${this.state.id}.html`); } }.bind(this)).catch( (err) => this.setState({error: err}) diff --git a/app/src/frontend/login.js b/app/src/frontend/login.js index 2f349e64..0dcecbbd 100644 --- a/app/src/frontend/login.js +++ b/app/src/frontend/login.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import { Redirect, Link } from 'react-router-dom'; import ErrorBox from './error-box'; +import InfoBox from './info-box'; class Login extends Component { constructor(props) { @@ -64,6 +65,8 @@ class Login extends Component {

Log in

+
diff --git a/app/src/frontend/map.js b/app/src/frontend/map.js index 405bee62..46549fb4 100644 --- a/app/src/frontend/map.js +++ b/app/src/frontend/map.js @@ -33,10 +33,12 @@ class ColouringMap extends Component { (res) => res.json() ).then(function(data){ if (data.geometry_id && data.id){ - this.props.history.push(`/building/${data.id}.html`); this.props.selectBuilding(data); + this.props.history.push(`/building/${data.id}.html`); } else { - // this.props.selectBuilding(undefined); // TODO follow through back to maps + // should deselect but keep/return to expected colour theme + // this.props.selectBuilding(undefined); + // this.props.history.push(`/map/date_year.html`); } }.bind(this)).catch( (err) => console.error(err) diff --git a/app/src/frontend/my-account.js b/app/src/frontend/my-account.js index adfd7be8..0fa25ed1 100644 --- a/app/src/frontend/my-account.js +++ b/app/src/frontend/my-account.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { Redirect } from 'react-router'; +import { Link, Redirect } from 'react-router-dom'; import ErrorBox from './error-box'; @@ -36,7 +36,15 @@ class MyAccountPage extends Component { return (
-

Welcome, {this.props.user.username}

+

Welcome, {this.props.user.username}!

+

+ + Colouring London is under active development, please report any + bugs on + GitHub. + +

+ Start colouring diff --git a/app/src/frontend/signup.js b/app/src/frontend/signup.js index fd525983..9773faab 100644 --- a/app/src/frontend/signup.js +++ b/app/src/frontend/signup.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import { Redirect, Link } from 'react-router-dom'; import ErrorBox from './error-box'; +import InfoBox from './info-box'; class SignUp extends Component { constructor(props) { @@ -67,6 +68,8 @@ class SignUp extends Component {

Sign up

+

Create an account to start colouring in.