From ee998efb9ff2e3489fa08c240b026dd34e48e7c7 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Thu, 12 Dec 2019 18:17:19 +0100 Subject: [PATCH] Fix warning caused by #4132 --- packages/ra-ui-materialui/src/list/Pagination.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/ra-ui-materialui/src/list/Pagination.js b/packages/ra-ui-materialui/src/list/Pagination.js index 92cad22e594..ad42322dde2 100644 --- a/packages/ra-ui-materialui/src/list/Pagination.js +++ b/packages/ra-ui-materialui/src/list/Pagination.js @@ -1,7 +1,11 @@ import React, { useEffect, useCallback } from 'react'; import PropTypes from 'prop-types'; import { TablePagination, Toolbar, useMediaQuery } from '@material-ui/core'; -import { useTranslate, sanitizeListRestProps } from 'ra-core'; +import { + useTranslate, + sanitizeListRestProps, + ComponentPropType, +} from 'ra-core'; import DefaultPaginationActions from './PaginationActions'; import DefaultPaginationLimit from './PaginationLimit'; @@ -102,7 +106,9 @@ const Pagination = ({ }; Pagination.propTypes = { + actions: ComponentPropType, ids: PropTypes.array, + limit: PropTypes.element, loading: PropTypes.bool, page: PropTypes.number, perPage: PropTypes.number, @@ -110,8 +116,6 @@ Pagination.propTypes = { setPage: PropTypes.func, setPerPage: PropTypes.func, total: PropTypes.number, - actions: PropTypes.node, - limit: PropTypes.element, }; Pagination.defaultProps = {