Browse Source

set defaultProps

itizawa 5 years ago
parent
commit
3add5e3c60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/client/js/components/PaginationWrapper.jsx

+ 2 - 1
src/client/js/components/PaginationWrapper.jsx

@@ -158,7 +158,7 @@ PaginationWrapper.propTypes = {
   activePage: PropTypes.number.isRequired,
   changePage: PropTypes.func.isRequired,
   totalItemsCount: PropTypes.number.isRequired,
-  pagingLimit: PropTypes.number.isRequired,
+  pagingLimit: PropTypes.number,
   align: PropTypes.string,
   size: PropTypes.string,
 };
@@ -166,6 +166,7 @@ PaginationWrapper.propTypes = {
 PaginationWrapper.defaultProps = {
   align: 'left',
   size: 'md',
+  pagingLimit: Infinity,
 };
 
 export default PaginationWrapper;