react-paginate
Advanced tools
Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "react-paginate", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "A ReactJS component that creates a pagination.", | ||
@@ -5,0 +5,0 @@ "main": "./react_components/index.js", |
@@ -53,3 +53,5 @@ /** @jsx React.DOM */ | ||
event.preventDefault(); | ||
if (this.state.selected > 1) this.handlePageSelected(this.state.selected - 1, event); | ||
if (this.state.selected > 1) { | ||
this.handlePageSelected(this.state.selected - 1, event); | ||
} | ||
}, | ||
@@ -67,3 +69,3 @@ | ||
<ul className={this.props.containerClassName}> | ||
<li onClick={this.handlePreviousPage} className="previous"> | ||
<li onClick={this.handlePreviousPage} className="previous" disabled={this.state.selected === 1 ? 'disabled' : false}> | ||
<a href="">{this.props.previousLabel}</a> | ||
@@ -82,3 +84,3 @@ </li> | ||
<li onClick={this.handleNextPage} className="next"> | ||
<li onClick={this.handleNextPage} className="next" disabled={this.state.selected === this.props.pageNum ? 'disabled' : false}> | ||
<a href="">{this.props.nextLabel}</a> | ||
@@ -85,0 +87,0 @@ </li> |
@@ -15,3 +15,3 @@ /** @jsx React.DOM */ | ||
return ( | ||
<div>{comment.comment}</div> | ||
<div key={index}>{comment.comment}</div> | ||
); | ||
@@ -86,3 +86,3 @@ }); | ||
React.renderComponent( | ||
React.render( | ||
<App url={'http://localhost:3000/comments'} | ||
@@ -89,0 +89,0 @@ author={'adele'} |
Sorry, the diff of this file is too big to display
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
226050
1005