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 {
65
65
Setup : {
66
66
states : {
67
67
Startup : { }
68
- Start : { }
69
68
ValidateSetup : { }
69
+ Start : { }
70
70
SelectTutorial : { }
71
71
SetupNewTutorial : { }
72
- StartNewTutorial : { }
72
+ StartTutorial : { }
73
73
}
74
74
}
75
75
Tutorial : {
Original file line number Diff line number Diff line change @@ -30,13 +30,10 @@ const Routes = () => {
30
30
< Route path = "Setup.Start" >
31
31
< StartPage send = { send } context = { context } />
32
32
</ Route >
33
- < Route path = { [ 'Setup.LoadTutorialSummary' , 'Setup.LoadTutorialData' , 'Setup.SetupNewTutorial' ] } >
34
- < LoadingPage text = "Loading Tutorial..." />
35
- </ Route >
36
33
< Route path = "Setup.SelectTutorial" >
37
34
< SelectTutorialPage send = { send } context = { context } />
38
35
</ Route >
39
- < Route path = { [ 'Setup.SetupNewTutorial' , 'Setup.StartNewTutorial ' ] } >
36
+ < Route path = { [ 'Setup.SetupNewTutorial' , 'Setup.StartTutorial ' ] } >
40
37
< LoadingPage text = "Configuring tutorial..." />
41
38
</ Route >
42
39
{ /* Tutorial */ }
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const TutorialPage = (props: PageProps) => {
16
16
const levelData : TT . Level = selectors . currentLevel ( props . context )
17
17
18
18
const onContinue = ( ) : void => {
19
- console . log ( 'onContinue triggered' )
20
19
props . send ( {
21
20
type : 'LEVEL_NEXT' ,
22
21
payload : {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export const createMachine = (options: any) => {
81
81
on : {
82
82
NEW_TUTORIAL : 'ValidateSetup' ,
83
83
CONTINUE_TUTORIAL : {
84
- target : '#tutorial-level ' ,
84
+ target : 'StartTutorial ' ,
85
85
actions : [ 'continueConfig' ] ,
86
86
} ,
87
87
CONTINUE_FAILED : {
@@ -107,11 +107,11 @@ export const createMachine = (options: any) => {
107
107
actions : [ 'setError' ] ,
108
108
} ,
109
109
TRY_AGAIN : 'SetupNewTutorial' ,
110
- TUTORIAL_CONFIGURED : 'StartNewTutorial ' ,
110
+ TUTORIAL_CONFIGURED : 'StartTutorial ' ,
111
111
} ,
112
112
} ,
113
- StartNewTutorial : {
114
- onEntry : [ 'startNewTutorial ' ] ,
113
+ StartTutorial : {
114
+ onEntry : [ 'StartTutorial ' ] ,
115
115
after : {
116
116
0 : '#tutorial' ,
117
117
} ,
You can’t perform that action at this time.
0 commit comments