File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,16 @@ import SideBarDecorator from './utils/SideBarDecorator'
99const tutorialList = [
1010 {
1111 id : '1' ,
12- version : {
13- summary : {
14- title : 'Tutorial 1' ,
15- description : 'The first one' ,
16- } ,
12+ summary : {
13+ title : 'Tutorial 1' ,
14+ description : 'The first one' ,
1715 } ,
1816 } ,
1917 {
2018 id : '2' ,
21- version : {
22- summary : {
23- title : 'Tutorial 2' ,
24- description : 'The second one' ,
25- } ,
19+ summary : {
20+ title : 'Tutorial 2' ,
21+ description : 'The second one' ,
2622 } ,
2723 } ,
2824]
@@ -37,5 +33,11 @@ storiesOf('Start', module)
3733 } )
3834 . add ( 'Tutorial Item' , ( ) => {
3935 const tutorial = tutorialList [ 0 ]
40- return < TutorialItem onSelect = { action ( 'onSelect' ) } title = { tutorial . title } description = { tutorial . description } />
36+ return (
37+ < TutorialItem
38+ onSelect = { action ( 'onSelect' ) }
39+ title = { tutorial . summary . title }
40+ description = { tutorial . summary . description }
41+ />
42+ )
4143 } )
You can’t perform that action at this time.
0 commit comments