diff --git a/app/src/frontend/app.js b/app/src/frontend/app.js index bace2792..884cd2fa 100644 --- a/app/src/frontend/app.js +++ b/app/src/frontend/app.js @@ -84,7 +84,7 @@ class App extends React.Component { - + ( diff --git a/app/src/frontend/building-edit-any.js b/app/src/frontend/building-edit-any.js index 519044ee..83933baa 100644 --- a/app/src/frontend/building-edit-any.js +++ b/app/src/frontend/building-edit-any.js @@ -1,11 +1,17 @@ import React from 'react'; import Sidebar from './sidebar'; +import InfoBox from './info-box'; +import { Redirect } from 'react-router-dom'; -const BuildingEditAny = () => ( - -

Select a building to edit by clicking on the map…

-
-); - +const BuildingEditAny = (props) => { + if (!props.user){ + return + } + return ( + + + + ); +} export default BuildingEditAny;