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

Commitda29192

Browse files
committed
setup completed page
1 parentfc2c217 commitda29192

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

‎src/state/machine.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const machine = (dispatch: CR.EditorDispatch) =>
8686
cond:'hasNextLevel',
8787
},
8888
{
89-
target:'#end-tutorial',
89+
target:'#completed-tutorial',
9090
},
9191
],
9292
},
@@ -157,8 +157,8 @@ export const machine = (dispatch: CR.EditorDispatch) =>
157157
},
158158
},
159159
},
160-
EndTutorial:{
161-
id:'end-tutorial',
160+
Completed:{
161+
id:'completed-tutorial',
162162
type:'final',
163163
},
164164
},

‎typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export interface MachineStateSchema {
161161
StageComplete:{}
162162
}
163163
}
164-
EndTutorial:{}
164+
Completed:{}
165165
}
166166
}
167167
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom'react'
2+
3+
constCompletedPage=()=>{
4+
return<div>Tutorial Complete</div>
5+
}
6+
7+
exportdefaultCompletedPage

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import LoadingPage from '../LoadingPage'
66
importSummaryPagefrom'./SummaryPage'
77
importLevelPagefrom'./LevelPage'
88
importStagePagefrom'./StagePage'
9+
importCompletedPagefrom'./CompletedPage'
910

1011
const{ Route}=Router
1112

@@ -28,6 +29,9 @@ const Tutorial = (props: Props) => {
2829
<Routepath="Tutorial.Stage">
2930
<StagePagesend={send}/>
3031
</Route>
32+
<Routepath="Tutorial.Completed">
33+
<CompletedPage/>
34+
</Route>
3135
</Router>
3236
)
3337
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp