Skip to content

Commit 64c3e7a

Browse files
committed
cleanup routes
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent d6885b8 commit 64c3e7a

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
<Route path="Setup.Start">
3131
<StartPage send={send} context={context} />
3232
</Route>
33-
<Route path={['Setup.LoadTutorialSummary', 'Setup.LoadTutorialData', 'Setup.SetupNewTutorial']}>
34-
<LoadingPage text="Loading Tutorial..." />
35-
</Route>
3633
<Route path="Setup.SelectTutorial">
3734
<SelectTutorialPage send={send} context={context} />
3835
</Route>
39-
<Route path={['Setup.SetupNewTutorial', 'Setup.StartNewTutorial']}>
36+
<Route path={['Setup.SetupNewTutorial', 'Setup.StartTutorial']}>
4037
<LoadingPage text="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
const levelData: TT.Level = selectors.currentLevel(props.context)
1717

1818
const onContinue = (): 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
@@ -77,7 +77,7 @@ export const createMachine = (options: any) => {
7777
on: {
7878
NEW_TUTORIAL: 'ValidateSetup',
7979
CONTINUE_TUTORIAL: {
80-
target: '#tutorial-level',
80+
target: 'StartTutorial',
8181
actions: ['continueConfig'],
8282
},
8383
},
@@ -100,11 +100,11 @@ export const createMachine = (options: any) => {
100100
actions: ['setError'],
101101
},
102102
TRY_AGAIN: 'SetupNewTutorial',
103-
TUTORIAL_CONFIGURED: 'StartNewTutorial',
103+
TUTORIAL_CONFIGURED: 'StartTutorial',
104104
},
105105
},
106-
StartNewTutorial: {
107-
onEntry: ['startNewTutorial'],
106+
StartTutorial: {
107+
onEntry: ['StartTutorial'],
108108
after: {
109109
0: '#tutorial',
110110
},

0 commit comments

Comments
 (0)