react-component-countdown-timer
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -197,3 +197,3 @@ "use strict"; | ||
_this.state = { | ||
count: props.count | ||
count: parseInt(props.count, 10) | ||
}; | ||
@@ -234,5 +234,8 @@ return _this; | ||
var count = this.state.count; | ||
var className = this.props.className; | ||
var _this$props2 = this.props, | ||
className = _this$props2.className, | ||
id = _this$props2.id; | ||
return _react["default"].createElement("div", { | ||
className: "root-react-component-countdown-timer ".concat(className) | ||
className: "root-react-component-countdown-timer ".concat(className), | ||
id: id | ||
}, _react["default"].createElement("div", { | ||
@@ -248,5 +251,5 @@ className: "displayedTime" | ||
exports["default"] = CountdownTimer; | ||
_defineProperty(CountdownTimer, "propTypes", { | ||
CountdownTimer.propTypes = { | ||
className: _propTypes["default"].string, | ||
id: _propTypes["default"].string, | ||
count: _propTypes["default"].number, | ||
@@ -269,5 +272,4 @@ border: _propTypes["default"].bool, | ||
onEnd: _propTypes["default"].func | ||
}); | ||
_defineProperty(CountdownTimer, "defaultProps", { | ||
}; | ||
CountdownTimer.defaultProps = { | ||
count: 0, | ||
@@ -290,3 +292,4 @@ border: false, | ||
className: '', | ||
id: '', | ||
onEnd: function onEnd() {} | ||
}); | ||
}; |
{ | ||
"name": "react-component-countdown-timer", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Count down timer component for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
42241
622