Skip to content

Commit

Permalink
fix(Pagination): update default page range text
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Aug 14, 2020
1 parent 70d5847 commit fed0ed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/components/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export default class Pagination extends Component {
forwardText: 'Next page',
itemsPerPageText: 'Items per page:',
pageNumberText: 'Page Number',
pageRangeText: (current, total) => `of ${total} pages`,
pageRangeText: (current, total) =>
`of ${total} ${total === 1 ? 'page' : 'pages'}`,
disabled: false,
page: 1,
pagesUnknown: false,
Expand Down

0 comments on commit fed0ed1

Please sign in to comment.