1
1
import React from 'react'
2
- import { Div } from 'glamorous'
3
2
//
4
3
import ReactStory , { defaultProps } from 'react-story'
5
4
@@ -26,7 +25,6 @@ import Filtering from './stories/Filtering.js'
26
25
import ControlledTable from './stories/ControlledTable.js'
27
26
import PivotingOptions from './stories/PivotingOptions.js'
28
27
import EditableTable from './stories/EditableTable.js'
29
- import SubRows from './stories/SubRows.js'
30
28
31
29
export default class App extends React . Component {
32
30
render ( ) {
@@ -35,7 +33,7 @@ export default class App extends React.Component {
35
33
style = { {
36
34
display : 'block' ,
37
35
width : '100%' ,
38
- height : '100%' ,
36
+ height : '100%'
39
37
} }
40
38
pathPrefix = 'story/'
41
39
StoryWrapper = { ( props ) => (
@@ -57,7 +55,7 @@ export default class App extends React.Component {
57
55
src = '//npmcdn.com/react-table/media/Banner.png'
58
56
alt = 'React Table Logo'
59
57
style = { {
60
- width : '100px' ,
58
+ width : '100px'
61
59
} }
62
60
/>
63
61
</ a >
@@ -69,64 +67,28 @@ export default class App extends React.Component {
69
67
/>
70
68
</ defaultProps . StoryWrapper >
71
69
) }
72
- stories = { [ {
73
- name : 'Readme' ,
74
- component : Readme
75
- } , {
76
- name : 'Cell Renderers & Custom Components' ,
77
- component : CellRenderers
78
- } , {
79
- name : 'Default Sorting' ,
80
- component : DefaultSorting
81
- } , {
82
- name : 'Custom Sorting' ,
83
- component : CustomSorting
84
- } , {
85
- name : 'Custom Column Widths' ,
86
- component : CustomWidths
87
- } , {
88
- name : 'Custom Component Props' ,
89
- component : CustomComponentProps
90
- } , {
91
- name : 'Server-side Data' ,
92
- component : ServerSide
93
- } , {
94
- name : 'Sub Components' ,
95
- component : SubComponents
96
- } , {
97
- name : 'Pivoting & Aggregation' ,
98
- component : Pivoting
99
- } , {
100
- name : 'Pivoting & Aggregation w/ Sub Components' ,
101
- component : PivotingSubComponents
102
- } , {
103
- name : '100k Rows w/ Pivoting & Sub Components' ,
104
- component : OneHundredKRows
105
- } , {
106
- name : 'Pivoting Options' ,
107
- component : PivotingOptions
108
- } , {
109
- name : 'Functional Rendering' ,
110
- component : FunctionalRendering
111
- } , {
112
- name : 'Custom Expander Position' ,
113
- component : CustomExpanderPosition
114
- } , {
115
- name : 'Custom "No Data" Text' ,
116
- component : NoDataText
117
- } , {
118
- name : 'Footers' ,
119
- component : Footers
120
- } , {
121
- name : 'Custom Filtering' ,
122
- component : Filtering
123
- } , {
124
- name : 'Controlled Component' ,
125
- component : ControlledTable
126
- } , {
127
- name : 'Editable table' ,
128
- component : EditableTable
129
- } ] }
70
+ stories = { [
71
+ { name : 'Readme' , component : Readme } ,
72
+ { name : 'Simple Table' , component : Simple } ,
73
+ { name : 'Cell Renderers & Custom Components' , component : CellRenderers } ,
74
+ { name : 'Default Sorting' , component : DefaultSorting } ,
75
+ { name : 'Custom Sorting' , component : CustomSorting } ,
76
+ { name : 'Custom Column Widths' , component : CustomWidths } ,
77
+ { name : 'Custom Component Props' , component : CustomComponentProps } ,
78
+ { name : 'Server-side Data' , component : ServerSide } ,
79
+ { name : 'Sub Components' , component : SubComponents } ,
80
+ { name : 'Pivoting & Aggregation' , component : Pivoting } ,
81
+ { name : 'Pivoting & Aggregation w/ Sub Components' , component : PivotingSubComponents } ,
82
+ { name : '100k Rows w/ Pivoting & Sub Components' , component : OneHundredKRows } ,
83
+ { name : 'Pivoting Options' , component : PivotingOptions } ,
84
+ { name : 'Functional Rendering' , component : FunctionalRendering } ,
85
+ { name : 'Custom Expander Position' , component : CustomExpanderPosition } ,
86
+ { name : 'Custom "No Data" Text' , component : NoDataText } ,
87
+ { name : 'Footers' , component : Footers } ,
88
+ { name : 'Custom Filtering' , component : Filtering } ,
89
+ { name : 'Controlled Component' , component : ControlledTable } ,
90
+ { name : 'Editable Table' , component : EditableTable }
91
+ ] }
130
92
/>
131
93
)
132
94
}
0 commit comments