We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent44cf7d7 commit957d05bCopy full SHA for 957d05b
src/state/machine.ts
@@ -9,9 +9,9 @@ export const machine = (tutorialModel: TutorialModel, editorDispatch: CR.EditorD
9
Machine<{},CR.MachineStateSchema,CR.MachineEvent>(
10
{
11
id:'root',
12
-initial:'SelectTutorial',
+initial:'Start',
13
states:{
14
-SelectTutorial:{
+Start:{
15
onEntry:['createWebview'],
16
initial:'Initial',
17
typings/index.d.ts
@@ -123,7 +123,7 @@ export interface MachineEvent {
123
124
exportinterfaceMachineStateSchema{
125
126
127
128
Initial:{}
129
Startup:{}
web-app/src/App.tsx
@@ -13,7 +13,7 @@ interface ReceivedEvent {
}
constApp=()=>{
-constinitialState='SelectTutorial.Initial'
+constinitialState='Start.Initial'
18
// set state machine state
19
const[state,setState]=React.useState(initialState)
web-app/src/Routes.tsx
@@ -46,16 +46,16 @@ const Routes = ({ state }: Props) => {
46
return(
47
<divstyle={{ ...styles.page, ...dimensions}}>
48
<Routerstate={state}>
49
-<Routepath="SelectTutorial.Startup">
+<Routepath="Start.Startup">
50
<LoadingPagetext="Launching..."/>
51
</Route>
52
-<Routepath="SelectTutorial.NewTutorial.InitializeTutorial">
+<Routepath="Start.NewTutorial.InitializeTutorial">
53
<LoadingPagetext="Launching Tutorial..."/>
54
55
-<Routepath="SelectTutorial.NewTutorial.SelectTutorial">
+<Routepath="Start.NewTutorial.SelectTutorial">
56
<NewPage/>
57
58
-<Routepath="SelectTutorial.ContinueTutorial">
+<Routepath="Start.ContinueTutorial">
59
<ContinuePage/>
60
61
<Routepath="Tutorial.Initialize">
web-app/src/components/Error/index.tsx
@@ -15,7 +15,7 @@ interface Props {
constErrorView=({ error}:Props)=>{
-console.log('ERROR:',error)
+console.log(error)
20
<divstyle={styles.container}>
21
<h1>Error</h1>
web-app/src/containers/New/index.tsx
@@ -34,7 +34,7 @@ const NewPageContainer = () => {
34
35
36
<React.Suspensefallback={Loading}>
37
-<NewPageonNew={()=>send('TUTORIAL_START')}tutorialList={data.tutorials}/>
+<NewPageonNew={()=>send('TUTORIAL_START')}tutorialList={data.tutorials}/>
38
</React.Suspense>
39
)
40