Skip to content

Commit

Permalink
UI: fix clicking on disabled error, show 1/1 when only 1 page
Browse files Browse the repository at this point in the history
  • Loading branch information
sofa-tata committed Jun 26, 2023
1 parent bdf59eb commit 2baa591
Show file tree
Hide file tree
Showing 10 changed files with 1,434 additions and 1,387 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/cjs/types/components/Table/Pagination/Pagination.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface PaginationProps {
totalRows: number;
rowsPerPage: number;
defaultCurrentPage: number;
isLoading?: boolean;
}
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage }: PaginationProps): JSX.Element | null;
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage, isLoading }: PaginationProps): JSX.Element | null;
export default Pagination;
14 changes: 7 additions & 7 deletions dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/esm/types/components/Table/Pagination/Pagination.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface PaginationProps {
totalRows: number;
rowsPerPage: number;
defaultCurrentPage: number;
isLoading?: boolean;
}
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage }: PaginationProps): JSX.Element | null;
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage, isLoading }: PaginationProps): JSX.Element | null;
export default Pagination;
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,9 @@ interface PaginationProps {
totalRows: number;
rowsPerPage: number;
defaultCurrentPage: number;
isLoading?: boolean;
}
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage }: PaginationProps): JSX.Element | null;
declare function Pagination({ onPageChange, totalRows, rowsPerPage, defaultCurrentPage, isLoading }: PaginationProps): JSX.Element | null;

interface PerPageProps {
value: string | number;
Expand Down
Loading

0 comments on commit 2baa591

Please sign in to comment.