Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alikazemkhanloo authored Mar 9, 2020
1 parent 48dc786 commit fa3ef72
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/ra-ui-materialui/src/list/PaginationActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ function PaginationActions(props) {
onClick={prevPage}
className="previous-page"
>
{theme.direction === "rtl" ? <ChevronRight /> : <ChevronLeft />}
{theme.direction === 'rtl' ? (
<ChevronLeft />
) : (
<ChevronRight />
)}
{translate('ra.navigation.prev')}
</Button>
)}
Expand All @@ -141,7 +145,11 @@ function PaginationActions(props) {
className="next-page"
>
{translate('ra.navigation.next')}
{theme.direction === "rtl" ? <ChevronLeft /> : <ChevronRight />}
{theme.direction === 'rtl' ? (
<ChevronRight />
) : (
<ChevronLeft />
)}
</Button>
)}
</div>
Expand All @@ -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 = {
Expand Down

0 comments on commit fa3ef72

Please sign in to comment.