diff options
author | Emiliano Ciavatta | 2020-05-09 12:34:08 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-05-09 12:34:08 +0000 |
commit | 6006d47c1f3397862bb13c782d66689067135bdb (patch) | |
tree | a86e5a275063485cc93a5d8b7077ec119900037d /frontend/src/views/App.js | |
parent | dee7d7dfcbec7ef4475896935873f04d4df0d40f (diff) |
Add infinite scroll to connections, implement connection actions
Diffstat (limited to 'frontend/src/views/App.js')
-rw-r--r-- | frontend/src/views/App.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/views/App.js b/frontend/src/views/App.js index 2b444a2..e3119aa 100644 --- a/frontend/src/views/App.js +++ b/frontend/src/views/App.js @@ -3,7 +3,7 @@ import Header from "./Header"; import './App.scss'; import MainPane from "./MainPane"; import Footer from "./Footer"; -import {Route, BrowserRouter as Router, Switch} from "react-router-dom"; +import {BrowserRouter as Router, Route, Switch} from "react-router-dom"; import Services from "./Services"; class App extends Component { @@ -16,9 +16,9 @@ class App extends Component { } render() { - let modal = "" + let modal = ""; if (this.state.servicesShow) { - modal = <Services onHide={() => this.setState({servicesShow: false})} /> + modal = <Services onHide={() => this.setState({servicesShow: false})}/>; } return ( @@ -26,8 +26,8 @@ class App extends Component { <Router> <Header onOpenServices={() => this.setState({servicesShow: true})}/> <Switch> - <Route path="/connections/:id" children={<MainPane/>} /> - <Route path="/" children={<MainPane/>} /> + <Route path="/connections/:id" children={<MainPane/>}/> + <Route path="/" children={<MainPane/>}/> </Switch> {modal} <Footer/> |