diff --git a/packages/ra-ui-materialui/src/list/PaginationActions.js b/packages/ra-ui-materialui/src/list/PaginationActions.js index a1dab07dd4a..e33a416a872 100644 --- a/packages/ra-ui-materialui/src/list/PaginationActions.js +++ b/packages/ra-ui-materialui/src/list/PaginationActions.js @@ -127,7 +127,11 @@ function PaginationActions(props) { onClick={prevPage} className="previous-page" > - {theme.direction === "rtl" ? : } + {theme.direction === 'rtl' ? ( + + ) : ( + + )} {translate('ra.navigation.prev')} )} @@ -141,7 +145,11 @@ function PaginationActions(props) { className="next-page" > {translate('ra.navigation.next')} - {theme.direction === "rtl" ? : } + {theme.direction === 'rtl' ? ( + + ) : ( + + )} )} @@ -164,7 +172,7 @@ PaginationActions.propTypes = { rowsPerPage: PropTypes.number.isRequired, color: PropTypes.oneOf(['primary', 'secondary']), size: PropTypes.oneOf(['small', 'medium', 'large']), - theme: PropTypes.object.isRequired, + theme: PropTypes.object, }; PaginationActions.defaultProps = {