File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
web-app/src/containers/Tutorial Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export interface MachineStateSchema {
161161 StageComplete : { }
162162 }
163163 }
164- EndTutorial : { }
164+ Completed : { }
165165 }
166166 }
167167 }
Original file line number Diff line number Diff line change 1+ import * as React from 'react'
2+
3+ const CompletedPage = ( ) => {
4+ return < div > Tutorial Complete</ div >
5+ }
6+
7+ export default CompletedPage
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import LoadingPage from '../LoadingPage'
66import SummaryPage from './SummaryPage'
77import LevelPage from './LevelPage'
88import StagePage from './StagePage'
9+ import CompletedPage from './CompletedPage'
910
1011const { Route } = Router
1112
@@ -28,6 +29,9 @@ const Tutorial = (props: Props) => {
2829 < Route path = "Tutorial.Stage" >
2930 < StagePage send = { send } />
3031 </ Route >
32+ < Route path = "Tutorial.Completed" >
33+ < CompletedPage />
34+ </ Route >
3135 </ Router >
3236 )
3337}
You can’t perform that action at this time.
0 commit comments