synapsefi-ui
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -66,2 +66,9 @@ 'use strict'; | ||
_createClass(Accordion, [{ | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(nextProps) { | ||
if (nextProps.showContent !== this.props.showContent) { | ||
this.setState({ showContent: nextProps.showContent }); | ||
} | ||
} | ||
}, { | ||
key: 'toggleShowContent', | ||
@@ -76,2 +83,3 @@ value: function toggleShowContent() { | ||
header = _props.header, | ||
headerStyle = _props.headerStyle, | ||
menuSpeed = _props.menuSpeed, | ||
@@ -87,3 +95,3 @@ children = _props.children; | ||
Header, | ||
{ onClick: this.toggleShowContent }, | ||
{ onClick: this.toggleShowContent, style: headerStyle }, | ||
header, | ||
@@ -90,0 +98,0 @@ _react2.default.createElement(StyledCheveron, { |
{ | ||
"name": "synapsefi-ui", | ||
"description": "synapsefi-ui", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
188069
3215