@@ -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