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

Commit957d05b

Browse files
committed
rename select to start
1 parent44cf7d7 commit957d05b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

‎src/state/machine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export const machine = (tutorialModel: TutorialModel, editorDispatch: CR.EditorD
99
Machine<{},CR.MachineStateSchema,CR.MachineEvent>(
1010
{
1111
id:'root',
12-
initial:'SelectTutorial',
12+
initial:'Start',
1313
states:{
14-
SelectTutorial:{
14+
Start:{
1515
onEntry:['createWebview'],
1616
initial:'Initial',
1717
states:{

‎typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface MachineEvent {
123123

124124
exportinterfaceMachineStateSchema{
125125
states:{
126-
SelectTutorial:{
126+
Start:{
127127
states:{
128128
Initial:{}
129129
Startup:{}

‎web-app/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface ReceivedEvent {
1313
}
1414

1515
constApp=()=>{
16-
constinitialState='SelectTutorial.Initial'
16+
constinitialState='Start.Initial'
1717

1818
// set state machine state
1919
const[state,setState]=React.useState(initialState)

‎web-app/src/Routes.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ const Routes = ({ state }: Props) => {
4646
return(
4747
<divstyle={{ ...styles.page, ...dimensions}}>
4848
<Routerstate={state}>
49-
<Routepath="SelectTutorial.Startup">
49+
<Routepath="Start.Startup">
5050
<LoadingPagetext="Launching..."/>
5151
</Route>
52-
<Routepath="SelectTutorial.NewTutorial.InitializeTutorial">
52+
<Routepath="Start.NewTutorial.InitializeTutorial">
5353
<LoadingPagetext="Launching Tutorial..."/>
5454
</Route>
55-
<Routepath="SelectTutorial.NewTutorial.SelectTutorial">
55+
<Routepath="Start.NewTutorial.SelectTutorial">
5656
<NewPage/>
5757
</Route>
58-
<Routepath="SelectTutorial.ContinueTutorial">
58+
<Routepath="Start.ContinueTutorial">
5959
<ContinuePage/>
6060
</Route>
6161
<Routepath="Tutorial.Initialize">

‎web-app/src/components/Error/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface Props {
1515
}
1616

1717
constErrorView=({ error}:Props)=>{
18-
console.log('ERROR:',error)
18+
console.log(error)
1919
return(
2020
<divstyle={styles.container}>
2121
<h1>Error</h1>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const NewPageContainer = () => {
3434

3535
return(
3636
<React.Suspensefallback={Loading}>
37-
<NewPageonNew={()=>send('TUTORIAL_START')}tutorialList={data.tutorials}/>
37+
<NewPageonNew={()=>send('TUTORIAL_START')}tutorialList={data.tutorials}/>
3838
</React.Suspense>
3939
)
4040
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp