Skip to content

Commit e16e8b6

Browse files
committed
fix eslint
1 parent 70d46a3 commit e16e8b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Pagination.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
6363
disabled,
6464
simple,
6565
showTotal,
66-
showSizeChanger: showSizeChangerProp,
66+
showSizeChanger = total > totalBoundaryShowSizeChanger,
6767
pageSizeOptions,
6868

6969
// render
@@ -228,8 +228,6 @@ const Pagination: React.FC<PaginationProps> = (props) => {
228228

229229
const hasPrev = current > 1;
230230
const hasNext = current < calculatePage(undefined, pageSize, total);
231-
const showSizeChanger =
232-
showSizeChangerProp ?? total > totalBoundaryShowSizeChanger;
233231

234232
function prevHandle() {
235233
if (hasPrev) handleChange(current - 1);

0 commit comments

Comments
 (0)