react-clicky
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,15 +0,6 @@ | ||
/* @flow */ | ||
import * as React from 'react'; | ||
import scroll from 'zenscroll'; | ||
import zenscroll from 'zenscroll'; | ||
type Props = { | ||
style?: {}, | ||
onClick?: void, | ||
url?: string, | ||
scroll?: string | ||
} | ||
class Clicky extends React.Component<Props> { | ||
// @props style?: object, onClick?: void, url?: string, scroll?: string | ||
class Clicky extends React.Component { | ||
onClick = () => { | ||
@@ -26,3 +17,3 @@ const { onClick, url, scroll } = this.props; | ||
const target = document.getElementById(scroll); | ||
scroll.center(target); | ||
zenscroll.center(target); | ||
} | ||
@@ -29,0 +20,0 @@ }; |
@@ -1,5 +0,3 @@ | ||
/* @flow */ | ||
import Clicky from './Clicky' | ||
export default Clicky; |
{ | ||
"name": "react-clicky", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
13322
10
1
1
31