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
export interface MachineStateSchema {
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
const App = () => {
16-
const initialState = 'SelectTutorial.Initial'
16+
const initialState = '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
<div style={{ ...styles.page, ...dimensions }}>
4848
<Router state={state}>
49-
<Route path="SelectTutorial.Startup">
49+
<Route path="Start.Startup">
5050
<LoadingPage text="Launching..." />
5151
</Route>
52-
<Route path="SelectTutorial.NewTutorial.InitializeTutorial">
52+
<Route path="Start.NewTutorial.InitializeTutorial">
5353
<LoadingPage text="Launching Tutorial..." />
5454
</Route>
55-
<Route path="SelectTutorial.NewTutorial.SelectTutorial">
55+
<Route path="Start.NewTutorial.SelectTutorial">
5656
<NewPage />
5757
</Route>
58-
<Route path="SelectTutorial.ContinueTutorial">
58+
<Route path="Start.ContinueTutorial">
5959
<ContinuePage />
6060
</Route>
6161
<Route path="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
const ErrorView = ({ error }: Props) => {
18-
console.log('ERROR:',error)
18+
console.log(error)
1919
return (
2020
<div style={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.Suspense fallback={Loading}>
37-
<NewPage onNew={() => send('TUTORIAL_START')} tutorialList={data.tutorials} />
37+
<NewPage onNew={() => send('TUTORIAL_START')} tutorialList={data.tutorials} />
3838
</React.Suspense>
3939
)
4040
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp