Skip to content

Feature/completed #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
setup completed page
  • Loading branch information
ShMcK committed Jul 22, 2019
commit da29192223f004c5f2673b80ca9c42690c1c1cdc
6 changes: 3 additions & 3 deletions src/state/machine.ts
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ export const machine = (dispatch: CR.EditorDispatch) =>
cond: 'hasNextLevel',
},
{
target: '#end-tutorial',
target: '#completed-tutorial',
},
],
},
@@ -157,8 +157,8 @@ export const machine = (dispatch: CR.EditorDispatch) =>
},
},
},
EndTutorial: {
id: 'end-tutorial',
Completed: {
id: 'completed-tutorial',
type: 'final',
},
},
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ export interface MachineStateSchema {
StageComplete: {}
}
}
EndTutorial: {}
Completed: {}
}
}
}
7 changes: 7 additions & 0 deletions web-app/src/containers/Tutorial/CompletedPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from 'react'

const CompletedPage = () => {
return <div>Tutorial Complete</div>
}

export default CompletedPage
4 changes: 4 additions & 0 deletions web-app/src/containers/Tutorial/index.tsx
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import LoadingPage from '../LoadingPage'
import SummaryPage from './SummaryPage'
import LevelPage from './LevelPage'
import StagePage from './StagePage'
import CompletedPage from './CompletedPage'

const { Route } = Router

@@ -28,6 +29,9 @@ const Tutorial = (props: Props) => {
<Route path="Tutorial.Stage">
<StagePage send={send} />
</Route>
<Route path="Tutorial.Completed">
<CompletedPage />
</Route>
</Router>
)
}