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

Commit2825103

Browse files
committed
rename action toonContinue
1 parente1219cc commit2825103

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ interface Props {
2828
[stepId:string]:any// CC.Step
2929
}
3030
complete:boolean
31-
onNextStage():void
31+
onContinue():void
3232
}
3333

34-
constStage=({ stage, steps,onNextStage, complete}:Props)=>{
34+
constStage=({ stage, steps,onContinue, complete}:Props)=>{
3535
const{ stepList, content}=stage
3636
const{ title, text}=content
3737
// grab the active step
@@ -61,7 +61,7 @@ const Stage = ({ stage, steps, onNextStage, complete }: Props) => {
6161

6262
{complete&&(
6363
<divstyle={styles.options}>
64-
<ButtononClick={onNextStage}>Continue</Button>
64+
<ButtononClick={onContinue}>Continue</Button>
6565
</div>
6666
)}
6767
</div>

‎web-app/src/containers/Tutorial/StagePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const StagePage = (props: PageProps) => {
1818

1919
conststageComplete=progress.stages[stageId]||false
2020

21-
constonNextStage=():void=>{
21+
constonContinue=():void=>{
2222
props.send('STAGE_NEXT')
2323
}
2424

@@ -35,7 +35,7 @@ const StagePage = (props: PageProps) => {
3535
},
3636
}
3737
}
38-
return<Stagestage={stage}steps={steps}onNextStage={onNextStage}complete={stageComplete}/>
38+
return<Stagestage={stage}steps={steps}onContinue={onContinue}complete={stageComplete}/>
3939
}
4040

4141
exportdefaultStagePage

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Tutorial = (props: Props) => {
1818
return(
1919
<Routerstate={props.state}>
2020
<Routepath="Tutorial.LoadNext">
21-
<LoadingPagetext="Loading Tutorial..."/>
21+
<LoadingPagetext="Loading..."/>
2222
</Route>
2323
<Routepath="Tutorial.Summary">
2424
<SummaryPagesend={send}/>

‎web-app/stories/Stage.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ function someExample(a) {
5151
})}
5252
stage={object('stage',demo.data.stages.stage1Id)}
5353
complete={boolean('complete',false)}
54-
onNextStage={action('onNextStage')}
54+
onContinue={action('onContinue')}
5555
/>
5656
))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp