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 @@ -77,7 +77,7 @@ export const createMachine = (options: any) => {
77
77
on : {
78
78
NEW_TUTORIAL : 'ValidateSetup' ,
79
79
CONTINUE_TUTORIAL : {
80
- target : '#tutorial-level ' ,
80
+ target : 'StartTutorial ' ,
81
81
actions : [ 'continueConfig' ] ,
82
82
} ,
83
83
} ,
@@ -100,11 +100,11 @@ export const createMachine = (options: any) => {
100
100
actions : [ 'setError' ] ,
101
101
} ,
102
102
TRY_AGAIN : 'SetupNewTutorial' ,
103
- TUTORIAL_CONFIGURED : 'StartNewTutorial ' ,
103
+ TUTORIAL_CONFIGURED : 'StartTutorial ' ,
104
104
} ,
105
105
} ,
106
- StartNewTutorial : {
107
- onEntry : [ 'startNewTutorial ' ] ,
106
+ StartTutorial : {
107
+ onEntry : [ 'StartTutorial ' ] ,
108
108
after : {
109
109
0 : '#tutorial' ,
110
110
} ,
You can’t perform that action at this time.
0 commit comments