Skip to content

Commit 7382010

Browse files
committed
fix #970
1 parent a1a59f9 commit 7382010

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

packages/react-bootstrap-table2-example/examples/pagination/custom-pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const options = {
7474
// hidePageListOnlyOnePage: true, // Hide the pagination list when only one page
7575
firstPageText: 'First',
7676
prePageText: 'Back',
77-
nextPageText: 'Next',
77+
nextPageText: <span>Next</span>,
7878
lastPageText: 'Last',
7979
nextPageTitle: 'First page',
8080
prePageTitle: 'Pre page',

packages/react-bootstrap-table2-paginator/src/page-button.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ class PageButton extends Component {
3939

4040
PageButton.propTypes = {
4141
onPageChange: PropTypes.func.isRequired,
42-
page: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
42+
page: PropTypes.oneOfType([
43+
PropTypes.node,
44+
PropTypes.number,
45+
PropTypes.string
46+
]).isRequired,
4347
active: PropTypes.bool.isRequired,
4448
disabled: PropTypes.bool.isRequired,
4549
className: PropTypes.string,

packages/react-bootstrap-table2-paginator/src/pagination-list.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ const PaginatonList = props => (
2727

2828
PaginatonList.propTypes = {
2929
pages: PropTypes.arrayOf(PropTypes.shape({
30-
page: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
30+
page: PropTypes.oneOfType([
31+
PropTypes.node,
32+
PropTypes.number,
33+
PropTypes.string
34+
]),
3135
active: PropTypes.bool,
3236
disable: PropTypes.bool,
3337
title: PropTypes.string

packages/react-bootstrap-table2-paginator/src/pagination.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ Pagination.propTypes = {
100100
sizePerPageRenderer: PropTypes.func,
101101
paginationTotalRenderer: PropTypes.func,
102102
sizePerPageOptionRenderer: PropTypes.func,
103-
firstPageText: PropTypes.string,
104-
prePageText: PropTypes.string,
105-
nextPageText: PropTypes.string,
106-
lastPageText: PropTypes.string,
103+
firstPageText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
104+
prePageText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
105+
nextPageText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
106+
lastPageText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
107107
nextPageTitle: PropTypes.string,
108108
prePageTitle: PropTypes.string,
109109
firstPageTitle: PropTypes.string,

0 commit comments

Comments
 (0)