11import React , { useContext , useEffect } from 'react' ;
22import { Redirect , Route , Switch } from 'react-router-dom' ;
33import LandingPageContainer from './LandingPageContainer' ;
4- import TitleBarContainer from './TitleBarContainer ' ;
4+ import WindowBar from '../components/WindowBar ' ;
55import About from '../components/About' ;
66import Contact from '../components/Contact' ;
77import Settings from '../components/Settings' ;
@@ -26,25 +26,27 @@ const MainContainer = React.memo(() => {
2626 } , [ ] ) ;
2727
2828 return (
29- < div className = "main-container" style = { currentModeCSS } >
30- < div className = "main-routes" >
31- < TitleBarContainer />
32- < Switch >
33- < Route exact path = "/" component = { LandingPageContainer } />
34- < Route exact path = "/awaitingApproval" component = { AwaitingApproval } />
35- < Route exact path = "/about" render = { ( ) => checkAuth ( About ) } />
36- < Route exact path = "/contact" render = { ( ) => checkAuth ( Contact ) } />
37- < Route exact path = "/settings" render = { ( ) => checkAuth ( Settings ) } />
38- < Route exact path = "/applications" render = { ( ) => checkAuth ( Occupied ) } />
39- < Route
40- exact
41- path = "/applications/:app/:service"
42- render = { ( ) => checkAuth ( GraphsContainer ) }
43- />
44- < Route path = "*" render = { ( ) => < h1 > Not found</ h1 > } />
45- </ Switch >
29+ < >
30+ { /* <WindowBar /> */ }
31+ < div className = "main-container" style = { currentModeCSS } >
32+ < div className = "main-routes" >
33+ < Switch >
34+ < Route exact path = "/" component = { LandingPageContainer } />
35+ < Route exact path = "/awaitingApproval" component = { AwaitingApproval } />
36+ < Route exact path = "/about" render = { ( ) => checkAuth ( About ) } />
37+ < Route exact path = "/contact" render = { ( ) => checkAuth ( Contact ) } />
38+ < Route exact path = "/settings" render = { ( ) => checkAuth ( Settings ) } />
39+ < Route exact path = "/applications" render = { ( ) => checkAuth ( Occupied ) } />
40+ < Route
41+ exact
42+ path = "/applications/:app/:service"
43+ render = { ( ) => checkAuth ( GraphsContainer ) }
44+ />
45+ < Route path = "*" render = { ( ) => < h1 > Not found</ h1 > } />
46+ </ Switch >
47+ </ div >
4648 </ div >
47- </ div >
49+ </ >
4850 ) ;
4951} ) ;
5052
0 commit comments