11import * as React from 'react'
2- import * as CR from 'typings'
2+ import { MachineContext as RootMachineContext } from './services/state/machine'
3+ import { MachineContext as SelectTutorialContext } from './services/state/selectTutorial'
4+ import { MachineContext as PlayTutorialContext } from './services/state/playTutorial'
35import Router from './components/Router'
46import Workspace from './components/Workspace'
57import ContinuePage from './containers/Continue'
@@ -18,29 +20,29 @@ const Routes = () => {
1820 return (
1921 < Workspace >
2022 < Router >
21- < Route path = { [ 'SelectTutorial.Startup' , 'SelectTutorial.Authenticate' , 'SelectTutorial.NewOrContinue' ] } >
22- < LoadingPage text = "Launching..." context = { { } as CR . MachineContext } />
23+ < Route path = { 'Initializing' } >
24+ < LoadingPage text = "Launching..." context = { { } as RootMachineContext } />
2325 </ Route >
24- < Route path = "SelectTutorial .SelectTutorial" >
25- < NewPage send = { tempSend } context = { { } as CR . MachineContext } />
26+ < Route path = "Start .SelectTutorial" >
27+ < NewPage send = { tempSend } context = { { } as SelectTutorialContext } />
2628 </ Route >
27- < Route path = "SelectTutorial .ContinueTutorial" >
28- < ContinuePage send = { tempSend } context = { { } as CR . MachineContext } />
29+ < Route path = "Start .ContinueTutorial" >
30+ < ContinuePage send = { tempSend } context = { { } as SelectTutorialContext } />
2931 </ Route >
30- < Route path = "PlayTutorial .Initialize" >
31- < LoadingPage text = "Initializing..." context = { { } as CR . MachineContext } />
32+ < Route path = "Start .Initialize" >
33+ < LoadingPage text = "Initializing..." context = { { } as SelectTutorialContext } />
3234 </ Route >
3335 < Route path = "PlayTutorial.LoadNext" >
34- < LoadingPage text = "Loading..." context = { { } as CR . MachineContext } />
36+ < LoadingPage text = "Loading..." context = { { } as PlayTutorialContext } />
3537 </ Route >
3638 < Route path = "PlayTutorial.Summary" >
37- < OverviewPage send = { tempSend } context = { { } as CR . MachineContext } />
39+ < OverviewPage send = { tempSend } context = { { } as PlayTutorialContext } />
3840 </ Route >
3941 < Route path = "PlayTutorial.Level" >
40- < LevelSummaryPage send = { tempSend } context = { { } as CR . PlayMachineContext } />
42+ < LevelSummaryPage send = { tempSend } context = { { } as PlayTutorialContext } />
4143 </ Route >
4244 < Route path = "PlayTutorial.Completed" >
43- < CompletedPage send = { tempSend } context = { { } as CR . PlayMachineContext } />
45+ < CompletedPage send = { tempSend } context = { { } as PlayTutorialContext } />
4446 </ Route >
4547 </ Router >
4648 </ Workspace >
0 commit comments