'use strict'; import React from 'react'; import WalletSettingsStore from '../../stores/wallet_settings_store'; import WalletSettingsActions from '../../actions/wallet_settings_actions'; import Form from '../ascribe_forms/form'; import Property from '../ascribe_forms/property'; import CollapsibleParagraph from '../ascribe_collapsible/collapsible_paragraph'; import AppConstants from '../../constants/application_constants'; import { getLangText } from '../../utils/lang_utils'; let BitcoinWalletSettings = React.createClass({ propTypes: { defaultExpanded: React.PropTypes.bool }, getInitialState() { return WalletSettingsStore.getState(); }, componentDidMount() { WalletSettingsStore.listen(this.onChange); WalletSettingsActions.fetchWalletSettings(); }, componentWillUnmount() { WalletSettingsStore.unlisten(this.onChange); }, onChange(state) { this.setState(state); }, render() { let content = ; if (this.state.walletSettings.btc_public_key) { content = (
); } return (