Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasso committed Jun 5, 2017
1 parent 849a750 commit 958e7ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tablify",
"version": "0.0.8",
"version": "0.0.9",
"description": "A simple, lightweight and highly extensible datagrid for React",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
Expand Down
28 changes: 14 additions & 14 deletions src/paginations/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
import React from 'react';

export default class Pagination extends React.Component {
props: {
pages: number,
pageIndex: number,
pageSize: number,
onPageChange: Function,
component: Function | string,
indicators: number,
pageIndicator: Function,
prevIndicator: Function,
nextIndicator: Function,
firstIndicator: Function,
lastIndicator: Function
};

getIndicator = (Component: Function, index: number, key: any) => (
<Component
key={key !== undefined ? key : index}
Expand Down Expand Up @@ -52,6 +38,20 @@ export default class Pagination extends React.Component {
return indicatorsToShow.map(x => this.getIndicator(pageIndicator, x));
};

props: {
pages: number,
pageIndex: number,
pageSize: number,
onPageChange: Function,
component: Function | string,
indicators: number,
pageIndicator: Function,
prevIndicator: Function,
nextIndicator: Function,
firstIndicator: Function,
lastIndicator: Function
};

render() {
const {
pages,
Expand Down

0 comments on commit 958e7ef

Please sign in to comment.