11import * as React from 'react'
22// import { editorDispatch } from './services/vscode'
33import * as CR from 'typings'
4+ import Workspace from './components/Workspace'
5+
46import Router from './components/Router'
57import LoadingPage from './containers/LoadingPage'
68import ContinuePage from './containers/Continue'
@@ -12,37 +14,11 @@ import CompletedPage from './containers/Tutorial/CompletedPage'
1214
1315const { Route } = Router
1416
15- const styles = {
16- page : {
17- margin : 0 ,
18- backgroundColor : 'white' ,
19- } ,
20- }
21-
2217const tempSend = ( action : any ) => console . log ( 'sent' )
2318
2419const Routes = ( ) => {
25- // const [dimensions, setDimensions] = React.useState({
26- // width: window.innerWidth - 20,
27- // height: window.innerHeight - 20,
28- // })
29-
30- // // solution for windows getting off size
31- // // without adding multiple listeners
32- // React.useEffect(() => {
33- // const dimensionsInterval = setInterval(() => {
34- // setDimensions({
35- // width: window.innerWidth - 20,
36- // height: window.innerHeight - 20,
37- // })
38- // }, 5000)
39- // return () => {
40- // clearInterval(dimensionsInterval)
41- // }
42- // }, [])
43-
4420 return (
45- < div style = { { ... styles . page } } >
21+ < Workspace >
4622 < Router >
4723 < Route path = "Start.Startup" >
4824 < LoadingPage text = "Launching..." />
@@ -72,7 +48,7 @@ const Routes = () => {
7248 < CompletedPage send = { tempSend } context = { { } as CR . MachineContext } />
7349 </ Route >
7450 </ Router >
75- </ div >
51+ </ Workspace >
7652 )
7753}
7854
0 commit comments