From e9f0af3e7208cae56daf4adb330152d757a50cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 8 Jul 2015 17:46:52 +0200 Subject: [PATCH] change the default expand of additional settings --- js/components/settings_container.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/js/components/settings_container.js b/js/components/settings_container.js index 87d61a0d..5308c732 100644 --- a/js/components/settings_container.js +++ b/js/components/settings_container.js @@ -131,6 +131,10 @@ let AccountSettings = React.createClass({ let BitcoinWalletSettings = React.createClass({ + propTypes: { + defaultExpanded: React.PropTypes.bool + }, + getInitialState() { return WalletSettingsStore.getState(); }, @@ -172,7 +176,7 @@ let BitcoinWalletSettings = React.createClass({ + defaultExpanded={this.props.defaultExpanded}> {content} ); @@ -180,6 +184,9 @@ let BitcoinWalletSettings = React.createClass({ }); let LoanContractSettings = React.createClass({ + propTypes: { + defaultExpanded: React.PropTypes.bool + }, render() { @@ -187,7 +194,7 @@ let LoanContractSettings = React.createClass({ + defaultExpanded={this.props.defaultExpanded}> ); @@ -249,6 +256,10 @@ let FileUploader = React.createClass({ }); let APISettings = React.createClass({ + propTypes: { + defaultExpanded: React.PropTypes.bool + }, + getInitialState() { return ApplicationStore.getState(); }, @@ -312,7 +323,7 @@ let APISettings = React.createClass({ + defaultExpanded={this.props.defaultExpanded}>