import React, { Fragment } from 'react';
import { Route, Switch } from 'react-router-dom';
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';
import '../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import './main.css'
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) {
console.log("Logging in")
console.log(user)
this.setState({user: user});
}
logout() {
this.setState({user: undefined});
}
selectBuilding(building) {
this.setState({building: building})
}
render() {
return (
(
) } />
);
}
}
const NotFound = () => (
);
export default App;