Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbebd114

Browse files
committed
cleanup routes
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent4bdd02c commitbebd114

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

‎typings/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:{

‎web-app/src/Routes.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ const Routes = () => {
3030
<Routepath="Setup.Start">
3131
<StartPagesend={send}context={context}/>
3232
</Route>
33-
<Routepath={['Setup.LoadTutorialSummary','Setup.LoadTutorialData','Setup.SetupNewTutorial']}>
34-
<LoadingPagetext="Loading Tutorial..."/>
35-
</Route>
3633
<Routepath="Setup.SelectTutorial">
3734
<SelectTutorialPagesend={send}context={context}/>
3835
</Route>
39-
<Routepath={['Setup.SetupNewTutorial','Setup.StartNewTutorial']}>
36+
<Routepath={['Setup.SetupNewTutorial','Setup.StartTutorial']}>
4037
<LoadingPagetext="Configuring tutorial..."/>
4138
</Route>
4239
{/* Tutorial */}

‎web-app/src/containers/Tutorial/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const TutorialPage = (props: PageProps) => {
1616
constlevelData:TT.Level=selectors.currentLevel(props.context)
1717

1818
constonContinue=():void=>{
19-
console.log('onContinue triggered')
2019
props.send({
2120
type:'LEVEL_NEXT',
2221
payload:{

‎web-app/src/services/state/machine.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp