Skip to content

Commit

Permalink
Merge pull request #264 from EyeSeeTea/fix/use-new-pagination-options
Browse files Browse the repository at this point in the history
Use new paginationOptions prop in ObjectsTable
  • Loading branch information
adrianq authored Jul 22, 2020
2 parents f5a8c64 + 02ba314 commit 4fc6209
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/steps/data-elements/DataElementsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ export interface DataElementsTableProps {
visibleFilters?: FilterKey[];
}

const paginationOptions = {
pageSizeOptions: [10, 20, 50],
pageSizeInitialValue: 20,
};

const initialPagination: Partial<TablePagination> = {
pageSize: 20,
page: 1,
pageSizeOptions: [10, 20, 50],
};

const initialSorting: TableSorting<DataElement> = {
Expand Down Expand Up @@ -194,6 +198,7 @@ const DataElementsTable: React.FC<DataElementsTableProps> = props => {
resetKey={JSON.stringify(fullFilter)}
filterComponents={filterComponents}
actions={actions}
paginationOptions={paginationOptions}
/>
);
};
Expand Down

0 comments on commit 4fc6209

Please sign in to comment.