@@ -16,53 +16,65 @@ storiesOf('Tutorial SideBar', module)
16
16
. add ( 'Level' , ( ) => (
17
17
< Level
18
18
level = { object ( 'level' , {
19
- content : {
20
- text : 'A description of this stage' ,
21
- title : 'Sum Level' ,
22
- } ,
23
- stageList : [ 'stage1Id' , 'stage2Id' , 'stage3Id' ] ,
24
- } ) }
25
- stages = { object ( 'stages' , {
26
- stage1Id : {
27
- content : {
28
- text : 'some description' ,
19
+ id : '1' ,
20
+ title : 'Sum Level' ,
21
+ text : 'A description of this stage' ,
22
+ stages : [
23
+ {
24
+ id : '1' ,
29
25
title : 'First' ,
30
- } ,
31
- status : {
32
- active : false ,
33
- complete : true ,
34
- } ,
35
- stepList : [ ] ,
36
- } ,
37
- stage2Id : {
38
- content : {
39
26
text : 'some description' ,
40
- title : 'Second ' ,
27
+ status : 'COMPLETED ' ,
41
28
} ,
42
- status : {
43
- active : true ,
44
- complete : false ,
29
+ {
30
+ id : '2' ,
31
+ title : 'Second' ,
32
+ text : 'The second one' ,
33
+ status : 'ACTIVE' ,
45
34
} ,
46
- stepList : [ ] ,
47
- } ,
48
- stage3Id : {
49
- content : {
50
- text : 'some description' ,
35
+ {
36
+ id : '3' ,
51
37
title : 'Third' ,
38
+ text : 'The third one' ,
39
+ status : 'INCOMPLETE' ,
52
40
} ,
53
- status : {
54
- active : false ,
55
- complete : false ,
56
- } ,
57
- stepList : [ ] ,
58
- } ,
41
+ ] ,
59
42
} ) }
60
43
onNext = { linkTo ( 'Tutorial SideBar' , 'Stage' ) }
61
44
onBack = { linkTo ( 'TUtorial SideBar' , 'Summary' ) }
62
45
/>
63
46
) )
64
47
. add ( 'Level Summary' , ( ) => {
65
- return < LevelSummaryPage send = { action ( 'send' ) } levels = { [ ] } />
48
+ return (
49
+ < LevelSummaryPage
50
+ send = { action ( 'send' ) }
51
+ level = { {
52
+ id : '1' ,
53
+ title : 'Sum Level' ,
54
+ text : 'A description of this stage' ,
55
+ stages : [
56
+ {
57
+ id : '1' ,
58
+ title : 'First' ,
59
+ text : 'some description' ,
60
+ status : 'COMPLETE' ,
61
+ } ,
62
+ {
63
+ id : '2' ,
64
+ title : 'Second' ,
65
+ text : 'The second one' ,
66
+ status : 'ACTIVE' ,
67
+ } ,
68
+ {
69
+ id : '3' ,
70
+ title : 'Third' ,
71
+ text : 'The third one' ,
72
+ status : 'INCOMPLETE' ,
73
+ } ,
74
+ ] ,
75
+ } }
76
+ />
77
+ )
66
78
} )
67
79
. addDecorator ( apolloProvider )
68
80
. add ( 'Level Summary Container' , ( ) => {
0 commit comments