Skip to content

Commit

Permalink
chore(pager): update pager type definitions to include callback params
Browse files Browse the repository at this point in the history
fix #3561
  • Loading branch information
edleeks87 committed Feb 16, 2021
1 parent 90be09b commit a9a8767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/pager/pager.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from 'react';

export interface PagerPropTypes {
onPagination: () => void;
onNext?: () => void;
onFirst?: () => void;
onPrevious?: () => void;
onLast?: () => void;
onPagination: (pageSize: number, currentPage: number) => void;
onNext?: (ev: React.MouseEvent<HTMLElement>) => void;
onFirst?: (ev: React.MouseEvent<HTMLElement>) => void;
onPrevious?: (ev: React.MouseEvent<HTMLElement>) => void;
onLast?: (ev: React.MouseEvent<HTMLElement>) => void;
currentPage?: number | string;
totalRecords?: number | string;
pageSize?: number | string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/pager/pager.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Default = () => {
const pageSize = select(
"pageSize",
{
1: 1,
one: 1,
10: 10,
25: 25,
50: 50,
Expand Down

0 comments on commit a9a8767

Please sign in to comment.