react-customizable-progressbar
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -11,3 +11,3 @@ import React, { Component } from 'react' | ||
const getText = date => { | ||
const getText = (date) => { | ||
const h = date.hour() | ||
@@ -21,3 +21,3 @@ const m = date.minute() | ||
const Indicator = props => { | ||
const Indicator = (props) => { | ||
const seconds = totalSeconds - props.elapsedSeconds - initialSeconds | ||
@@ -43,5 +43,10 @@ const date = moment() | ||
class Countdown extends Component { | ||
state = { | ||
elapsedSeconds: 0, | ||
progress: initialProgress | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
elapsedSeconds: 0, | ||
progress: initialProgress | ||
} | ||
} | ||
@@ -108,4 +113,5 @@ | ||
} | ||
} | ||
export default Countdown |
@@ -5,4 +5,9 @@ import React, { Component } from 'react' | ||
class Timer extends Component { | ||
state = { | ||
elapsed: 0 | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
elapsed: 0 | ||
} | ||
} | ||
@@ -38,2 +43,3 @@ | ||
render = () => null | ||
} | ||
@@ -40,0 +46,0 @@ |
{ | ||
"name": "react-customizable-progressbar", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"main": "./dist/ReactCustomizableProgressbar.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35300
391
0