|
@@ -12,7 +12,7 @@ import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
|
|
|
* @extends {React.Component}
|
|
* @extends {React.Component}
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-function PaginationWrapper(props) {
|
|
|
|
|
|
|
+const PaginationWrapper = React.memo((props) => {
|
|
|
const {
|
|
const {
|
|
|
activePage, changePage, totalItemsCount, pagingLimit, align,
|
|
activePage, changePage, totalItemsCount, pagingLimit, align,
|
|
|
} = props;
|
|
} = props;
|
|
@@ -152,7 +152,7 @@ function PaginationWrapper(props) {
|
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
PaginationWrapper.propTypes = {
|
|
PaginationWrapper.propTypes = {
|
|
|
activePage: PropTypes.number.isRequired,
|
|
activePage: PropTypes.number.isRequired,
|