You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Pagination.jsx
+25-20Lines changed: 25 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -83,9 +83,15 @@ class Pagination extends React.Component {
83
83
84
84
consthasOnChange=props.onChange!==noop;
85
85
consthasCurrent=('current'inprops);
86
+
consthasShowLessItems=('showLessItems'inprops);
86
87
if(hasCurrent&&!hasOnChange){
87
88
console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.');// eslint-disable-line
88
89
}
90
+
if(hasShowLessItems&&props.showLessItems){
91
+
console.warn(
92
+
'Warning: `showLessItems` is deprecated since 1.18.0. Please use pagerCount instead.'
93
+
)// eslint-disable-line
94
+
}
89
95
90
96
letcurrent=props.defaultCurrent;
91
97
if('current'inprops){
@@ -145,13 +151,17 @@ class Pagination extends React.Component {
0 commit comments