diff options
author | Emiliano Ciavatta | 2020-10-16 17:06:05 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-16 17:06:05 +0000 |
commit | 56f70a72196c777f248038bb2e2e4099e6e1367d (patch) | |
tree | 714ad5aed8698dfffbb472b3fa74909acb8cdead /frontend/src/views/App.js | |
parent | 6204c99e69d1707a79c5e56685b47310106c60b0 (diff) | |
parent | 79b8b2fa3e8563c986da8baa3a761f2d4f0c6f47 (diff) |
Merge branch 'develop'
Diffstat (limited to 'frontend/src/views/App.js')
-rw-r--r-- | frontend/src/views/App.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/frontend/src/views/App.js b/frontend/src/views/App.js deleted file mode 100644 index fb4454c..0000000 --- a/frontend/src/views/App.js +++ /dev/null @@ -1,49 +0,0 @@ -import React, {Component} from 'react'; -import './App.scss'; -import Header from "./Header"; -import MainPane from "../components/panels/MainPane"; -import Footer from "./Footer"; -import {BrowserRouter as Router} from "react-router-dom"; -import Filters from "./Filters"; -import backend from "../backend"; -import ConfigurationPane from "../components/panels/ConfigurationPane"; - -class App extends Component { - - constructor(props) { - super(props); - - this.state = {}; - } - - componentDidMount() { - backend.get("/api/services").then(_ => this.setState({configured: true})); - } - - render() { - let modal; - if (this.state.filterWindowOpen && this.state.configured) { - modal = <Filters onHide={() => this.setState({filterWindowOpen: false})}/>; - } - - return ( - <div className="main"> - <Router> - <div className="main-header"> - <Header onOpenFilters={() => this.setState({filterWindowOpen: true})} /> - </div> - <div className="main-content"> - {this.state.configured ? <MainPane /> : - <ConfigurationPane onConfigured={() => this.setState({configured: true})} />} - {modal} - </div> - <div className="main-footer"> - {this.state.configured && <Footer/>} - </div> - </Router> - </div> - ); - } -} - -export default App; |