react-scroll
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,4 +6,2 @@ "use strict"; | ||
const { bool, object, string, func, number } = React.PropTypes | ||
var animateScroll = require('./animate-scroll'); | ||
@@ -14,3 +12,3 @@ var scrollSpy = require('./scroll-spy'); | ||
var Helpers = { | ||
Scroll: function (Component) { | ||
@@ -21,5 +19,5 @@ | ||
propTypes: { | ||
to: string.isRequired, | ||
offset: number, | ||
onClick: func | ||
to: React.PropTypes.string.isRequired, | ||
offset: React.PropTypes.number, | ||
onClick: React.PropTypes.func | ||
}, | ||
@@ -98,3 +96,3 @@ | ||
this.setState({ active : true }); | ||
if(this.props.onSetActive) { | ||
@@ -155,2 +153,1 @@ this.props.onSetActive(to); | ||
module.exports = Helpers; | ||
{ | ||
"name": "react-scroll", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A scroll component for React.js", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
21391
532