Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Jan 29, 2025
1 parent e8e5303 commit e9a1942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
}
}

let jumpPrev: React.ReactElement = null;
let jumpPrev: React.ReactElement<PagerProps> = null;

const dataOrAriaAttributeProps = pickAttrs(props, {
aria: true,
Expand All @@ -316,7 +316,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
</li>
);

let jumpNext: React.ReactElement = null;
let jumpNext: React.ReactElement<PagerProps> = null;

const allPages = calculatePage(undefined, pageSize, total);

Expand All @@ -326,7 +326,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
return null;
}

const pagerList: React.ReactElement[] = [];
const pagerList: React.ReactElement<PagerProps>[] = [];

const pagerProps: PagerProps = {
rootPrefixCls: prefixCls,
Expand Down

0 comments on commit e9a1942

Please sign in to comment.