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

Commite9b4c5d

Browse files
committed
cleanup step stories
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent209b07b commite9b4c5d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

‎web-app/src/containers/Tutorial/components/Step.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ interface Props {
1111
status:T.ProgressStatus
1212
subtasks:{name:string;pass:boolean}[]|null
1313
hints?:string[]
14-
hintIndex:number
15-
setHintIndex(value:number):void
14+
hintIndex?:number
15+
setHintIndex?(value:number):void
1616
onLoadSolution():void
1717
}
1818

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ storiesOf('Step', module)
6060
.addDecorator(withKnobs)
6161
.add('Active Step',()=>(
6262
<Step
63-
order={1}
63+
index={1}
6464
content={text('text',stepText)}
6565
status="ACTIVE"
6666
onLoadSolution={action('onLoadSolution')}
@@ -69,7 +69,7 @@ storiesOf('Step', module)
6969
))
7070
.add('Step Markdown',()=>(
7171
<Step
72-
order={2}
72+
index={2}
7373
content={text('text',paragraphText)}
7474
status={select('mode',{ACTIVE:'ACTIVE',COMPLETE:'COMPLETE',INCOMPLETE:'INCOMPLETE'},'ACTIVE','step')}
7575
onLoadSolution={action('onLoadSolution')}
@@ -78,7 +78,7 @@ storiesOf('Step', module)
7878
))
7979
.add('Substasks',()=>(
8080
<Step
81-
order={2}
81+
index={2}
8282
content={'A task with subtasks'}
8383
status={select('mode',{ACTIVE:'ACTIVE',COMPLETE:'COMPLETE',INCOMPLETE:'INCOMPLETE'},'ACTIVE','step')}
8484
onLoadSolution={action('onLoadSolution')}
@@ -100,11 +100,13 @@ storiesOf('Step', module)
100100
))
101101
.add('Hints',()=>(
102102
<Step
103-
order={1}
103+
index={1}
104104
content={text('text',stepText)}
105105
status="ACTIVE"
106106
onLoadSolution={action('onLoadSolution')}
107107
subtasks={null}
108108
hints={['First hint!','Second hint!']}
109+
hintIndex={0}
110+
setHintIndex={action('setHintIndex')}
109111
/>
110112
))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp