Skip to content

Commit 0d43b6d

Browse files
committed
Fix stories
1 parent 9dbd485 commit 0d43b6d

File tree

3 files changed

+313
-73
lines changed

3 files changed

+313
-73
lines changed

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.1.0",
44
"private": true,
55
"devDependencies": {
6-
"react-scripts": "0.9.5"
6+
"react-scripts": "0.9.5",
7+
"standard": "^10.0.2"
78
},
89
"dependencies": {
910
"github-markdown-css": "^2.6.0",

docs/src/App.js

Lines changed: 24 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
import { Div } from 'glamorous'
32
//
43
import ReactStory, { defaultProps } from 'react-story'
54

@@ -26,7 +25,6 @@ import Filtering from './stories/Filtering.js'
2625
import ControlledTable from './stories/ControlledTable.js'
2726
import PivotingOptions from './stories/PivotingOptions.js'
2827
import EditableTable from './stories/EditableTable.js'
29-
import SubRows from './stories/SubRows.js'
3028

3129
export default class App extends React.Component {
3230
render () {
@@ -35,7 +33,7 @@ export default class App extends React.Component {
3533
style={{
3634
display: 'block',
3735
width: '100%',
38-
height: '100%',
36+
height: '100%'
3937
}}
4038
pathPrefix='story/'
4139
StoryWrapper={(props) => (
@@ -57,7 +55,7 @@ export default class App extends React.Component {
5755
src='//npmcdn.com/react-table/media/Banner.png'
5856
alt='React Table Logo'
5957
style={{
60-
width: '100px',
58+
width: '100px'
6159
}}
6260
/>
6361
</a>
@@ -69,64 +67,28 @@ export default class App extends React.Component {
6967
/>
7068
</defaultProps.StoryWrapper>
7169
)}
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+
]}
13092
/>
13193
)
13294
}

0 commit comments

Comments
 (0)