Skip to content

Commit

Permalink
PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjordan committed Oct 10, 2016
1 parent 5d790ed commit 91074ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/ReorderExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ReorderExample extends React.Component {
super(props);

this.state = {
dataList: new FakeObjectDataListStore(10000),
dataList: new FakeObjectDataListStore(1000000),
columnOrder: [
'firstName',
'lastName',
Expand Down
23 changes: 11 additions & 12 deletions examples/helpers/cells.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ class LinkCell extends React.PureComponent {
};
module.exports.LinkCell = LinkCell;

module.exports.PagedCell = ({data, ...props}) => {
const dataVersion = data.getDataVersion();
return (
<PendingCell
data={data}
dataVersion={dataVersion}
{...props}>
</PendingCell>
);
};

class PendingCell extends React.PureComponent {
render() {
const {data, rowIndex, columnKey, dataVersion, ...props} = this.props;
Expand All @@ -102,6 +91,17 @@ class PendingCell extends React.PureComponent {
);
}
};
const PagedCell = ({data, ...props}) => {
const dataVersion = data.getDataVersion();
return (
<PendingCell
data={data}
dataVersion={dataVersion}
{...props}>
</PendingCell>
);
};
module.exports.PagedCell = PagedCell;

class RemovableHeaderCell extends React.PureComponent {
render() {
Expand Down Expand Up @@ -130,7 +130,6 @@ class TextCell extends React.PureComponent {
};
module.exports.TextCell = TextCell;


class TooltipCell extends React.PureComponent {
render() {
const {data, rowIndex, columnKey, ...props} = this.props;
Expand Down

0 comments on commit 91074ae

Please sign in to comment.