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 = this.setState({filterWindowOpen: false})}/>; } return (
this.setState({filterWindowOpen: true})} />
{this.state.configured ? : this.setState({configured: true})} />} {modal}
{this.state.configured &&
); } } export default App;