import React, { Fragment } from 'react'; import { Route, Switch, Link } from 'react-router-dom'; import { TransitionGroup, CSSTransition } from 'react-transition-group' import '../../node_modules/bootstrap/dist/css/bootstrap.min.css'; import './main.css'; import AboutPage from './about'; import BetaBanner from './beta-banner'; import BuildingEdit from './building-edit'; import BuildingView from './building-view'; import ColouringMap from './map'; import Header from './header'; import Legend from './legend'; import Login from './login'; import MyAccountPage from './my-account'; import SignUp from './signup'; import Welcome from './welcome'; class App extends React.Component { constructor(props) { super(props); this.state = { user: props.user, building: props.building, }; this.login = this.login.bind(this); this.logout = this.logout.bind(this); this.selectBuilding = this.selectBuilding.bind(this); } login(user) { if (user.error) { this.logout(); return } console.log("Logging in", user); this.setState({user: user}); } logout() { this.setState({user: undefined}); } selectBuilding(building) { this.setState({building: building}) } render() { return (
( ) } />
); } } const NotFound = () => (

Page not found

We can't find that one anywhere.

Back home
); export default App;