Comparing version 2.0.2 to 2.0.3
@@ -171,3 +171,3 @@ 'use strict'; | ||
{ style: styles.master }, | ||
_react2.default.createElement(_Main.CreditCard, props) | ||
_react2.default.createElement(_Main.CreditCard, _extends({ startExpanded: true }, props)) | ||
), | ||
@@ -174,0 +174,0 @@ _react2.default.createElement( |
@@ -40,16 +40,8 @@ 'use strict'; | ||
function CreditCard() { | ||
var _ref; | ||
var _temp, _this, _ret; | ||
function CreditCard(props) { | ||
_classCallCheck(this, CreditCard); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
var _this = _possibleConstructorReturn(this, (CreditCard.__proto__ || Object.getPrototypeOf(CreditCard)).call(this, props)); | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CreditCard.__proto__ || Object.getPrototypeOf(CreditCard)).call.apply(_ref, [this].concat(args))), _this), _this.state = { | ||
showDetails: false | ||
}, _this.styles = function () { | ||
_this.styles = function () { | ||
var theme = _this.props.theme; | ||
@@ -115,3 +107,8 @@ | ||
}; | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
}; | ||
_this.state = { | ||
showDetails: props.startExpanded | ||
}; | ||
return _this; | ||
} | ||
@@ -168,3 +165,3 @@ | ||
), | ||
' to a card with a lower APR*.' | ||
' credit card to a card with a lower APR*.' | ||
), | ||
@@ -229,2 +226,3 @@ _react2.default.createElement( | ||
onDismissClick: _propTypes2.default.func, | ||
startExpanded: _propTypes2.default.bool, | ||
theme: _propTypes2.default.object | ||
@@ -235,2 +233,3 @@ }; | ||
onDismissClick: function onDismissClick() {}, | ||
startExpanded: false, | ||
theme: _extends({}, _mxReactComponents.Styles) | ||
@@ -237,0 +236,0 @@ }; |
{ | ||
"name": "finsmart", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"main": "dist/Main.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
44339