Skip to content

Commit

Permalink
Fix rowsPerPageOptions for Table pagination in ui.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Feb 6, 2020
1 parent 367a53f commit 87ca675
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/components/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ class DataTable extends Component {

return(
<Paper>
<Table
className={this.props.classes.table}
rowsPerPageOptions=[10, 25, 50, 100, 200, 500]>
<Table className={this.props.classes.table}>
<TableHead>
{this.props.header}
</TableHead>
Expand All @@ -92,6 +90,7 @@ class DataTable extends Component {
component="div"
count={this.state.count}
rowsPerPage={this.state.rowsPerPage}
rowsPerPageOptions={[10, 25, 50, 100, 200, 500]}
page={this.state.page}
onChangePage={this.onChangePage}
onChangeRowsPerPage={this.onChangeRowsPerPage}
Expand Down

0 comments on commit 87ca675

Please sign in to comment.