Skip to content

Commit e9a1942

Browse files
committed
fix: fix
1 parent e8e5303 commit e9a1942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Pagination.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
300300
}
301301
}
302302

303-
let jumpPrev: React.ReactElement = null;
303+
let jumpPrev: React.ReactElement<PagerProps> = null;
304304

305305
const dataOrAriaAttributeProps = pickAttrs(props, {
306306
aria: true,
@@ -316,7 +316,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
316316
</li>
317317
);
318318

319-
let jumpNext: React.ReactElement = null;
319+
let jumpNext: React.ReactElement<PagerProps> = null;
320320

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

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

329-
const pagerList: React.ReactElement[] = [];
329+
const pagerList: React.ReactElement<PagerProps>[] = [];
330330

331331
const pagerProps: PagerProps = {
332332
rootPrefixCls: prefixCls,

0 commit comments

Comments
 (0)