File tree Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ export interface MachineStateSchema {
6565 Setup : {
6666 states : {
6767 Startup : { }
68- Start : { }
6968 ValidateSetup : { }
69+ Start : { }
7070 SelectTutorial : { }
7171 SetupNewTutorial : { }
72- StartNewTutorial : { }
72+ StartTutorial : { }
7373 }
7474 }
7575 Tutorial : {
Original file line number Diff line number Diff line change @@ -30,13 +30,10 @@ const Routes = () => {
3030 < Route path = "Setup.Start" >
3131 < StartPage send = { send } context = { context } />
3232 </ Route >
33- < Route path = { [ 'Setup.LoadTutorialSummary' , 'Setup.LoadTutorialData' , 'Setup.SetupNewTutorial' ] } >
34- < LoadingPage text = "Loading Tutorial..." />
35- </ Route >
3633 < Route path = "Setup.SelectTutorial" >
3734 < SelectTutorialPage send = { send } context = { context } />
3835 </ Route >
39- < Route path = { [ 'Setup.SetupNewTutorial' , 'Setup.StartNewTutorial ' ] } >
36+ < Route path = { [ 'Setup.SetupNewTutorial' , 'Setup.StartTutorial ' ] } >
4037 < LoadingPage text = "Configuring tutorial..." />
4138 </ Route >
4239 { /* Tutorial */ }
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const TutorialPage = (props: PageProps) => {
1616 const levelData : TT . Level = selectors . currentLevel ( props . context )
1717
1818 const onContinue = ( ) : void => {
19- console . log ( 'onContinue triggered' )
2019 props . send ( {
2120 type : 'LEVEL_NEXT' ,
2221 payload : {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export const createMachine = (options: any) => {
8181 on : {
8282 NEW_TUTORIAL : 'ValidateSetup' ,
8383 CONTINUE_TUTORIAL : {
84- target : '#tutorial-level ' ,
84+ target : 'StartTutorial ' ,
8585 actions : [ 'continueConfig' ] ,
8686 } ,
8787 CONTINUE_FAILED : {
@@ -107,11 +107,11 @@ export const createMachine = (options: any) => {
107107 actions : [ 'setError' ] ,
108108 } ,
109109 TRY_AGAIN : 'SetupNewTutorial' ,
110- TUTORIAL_CONFIGURED : 'StartNewTutorial ' ,
110+ TUTORIAL_CONFIGURED : 'StartTutorial ' ,
111111 } ,
112112 } ,
113- StartNewTutorial : {
114- onEntry : [ 'startNewTutorial ' ] ,
113+ StartTutorial : {
114+ onEntry : [ 'StartTutorial ' ] ,
115115 after : {
116116 0 : '#tutorial' ,
117117 } ,
You can’t perform that action at this time.
0 commit comments