react-paginate
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -106,2 +106,5 @@ 'use strict'; | ||
var breakView = void 0; | ||
var createPageView = function createPageView(index) { | ||
return _this.getPageElement(index); | ||
}; | ||
@@ -112,6 +115,4 @@ for (_index = 0; _index < _this.props.pageCount; _index++) { | ||
var pageView = _this.getPageElement(_index); | ||
if (page <= _this.props.marginPagesDisplayed) { | ||
items['key' + _index] = pageView; | ||
items['key' + _index] = createPageView(_index); | ||
continue; | ||
@@ -121,3 +122,3 @@ } | ||
if (page > _this.props.pageCount - _this.props.marginPagesDisplayed) { | ||
items['key' + _index] = pageView; | ||
items['key' + _index] = createPageView(_index); | ||
continue; | ||
@@ -127,3 +128,3 @@ } | ||
if (_index >= _this.state.selected - leftSide && _index <= _this.state.selected + rightSide) { | ||
items['key' + _index] = pageView; | ||
items['key' + _index] = createPageView(_index); | ||
continue; | ||
@@ -130,0 +131,0 @@ } |
{ | ||
"name": "react-paginate", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"description": "A ReactJS component that creates a pagination.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -154,2 +154,3 @@ 'use strict'; | ||
let breakView; | ||
let createPageView = (index) => this.getPageElement(index); | ||
@@ -160,6 +161,4 @@ for (index = 0; index < this.props.pageCount; index++) { | ||
let pageView = this.getPageElement(index); | ||
if (page <= this.props.marginPagesDisplayed) { | ||
items['key' + index] = pageView; | ||
items['key' + index] = createPageView(index); | ||
continue; | ||
@@ -169,3 +168,3 @@ } | ||
if (page > this.props.pageCount - this.props.marginPagesDisplayed) { | ||
items['key' + index] = pageView; | ||
items['key' + index] = createPageView(index); | ||
continue; | ||
@@ -175,3 +174,3 @@ } | ||
if ((index >= this.state.selected - leftSide) && (index <= this.state.selected + rightSide)) { | ||
items['key' + index] = pageView; | ||
items['key' + index] = createPageView(index); | ||
continue; | ||
@@ -178,0 +177,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250535
877