Skip to content

Commit

Permalink
Fix warning caused by #4132
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Dec 12, 2019
1 parent 3c9665f commit ee998ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/ra-ui-materialui/src/list/Pagination.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -102,16 +106,16 @@ const Pagination = ({
};

Pagination.propTypes = {
actions: ComponentPropType,
ids: PropTypes.array,
limit: PropTypes.element,
loading: PropTypes.bool,
page: PropTypes.number,
perPage: PropTypes.number,
rowsPerPageOptions: PropTypes.arrayOf(PropTypes.number),
setPage: PropTypes.func,
setPerPage: PropTypes.func,
total: PropTypes.number,
actions: PropTypes.node,
limit: PropTypes.element,
};

Pagination.defaultProps = {
Expand Down

0 comments on commit ee998ef

Please sign in to comment.