diff --git a/react/src/components/dashboard/main/dashboard.render.js b/react/src/components/dashboard/main/dashboard.render.js index 546f1a6..5574c71 100644 --- a/react/src/components/dashboard/main/dashboard.render.js +++ b/react/src/components/dashboard/main/dashboard.render.js @@ -30,7 +30,7 @@ const DashboardRender = function() { { !this.isNativeMode() && } { !this.isNativeMode() && } - + { !this.isNativeMode() && } { !this.isNativeMode() && } diff --git a/react/src/components/dashboard/sendCoin/sendCoin.js b/react/src/components/dashboard/sendCoin/sendCoin.js index e80716e..602f611 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.js @@ -1,4 +1,5 @@ import React from 'react'; +import { connect } from 'react-redux'; import Config from '../../../config'; import { translate } from '../../../translate/translate'; import { checkTimestamp } from '../../../util/time'; @@ -41,7 +42,7 @@ class SendCoin extends React.Component { super(props); this.state = { currentStep: 0, - sendFrom: this.props.Dashboard && this.props.Dashboard.activeHandle ? this.props.Dashboard.activeHandle[this.props.ActiveCoin.coin] : null, + sendFrom: this.props.Dashboard.activeHandle ? this.props.Dashboard.activeHandle[this.props.ActiveCoin.coin] : null, sendFromAmount: 0, sendTo: '', sendToOA: null, @@ -768,4 +769,26 @@ class SendCoin extends React.Component { } } -export default SendCoin; +const mapStateToProps = (state) => { + return { + ActiveCoin: { + coin: state.ActiveCoin.coin, + mode: state.ActiveCoin.mode, + send: state.ActiveCoin.send, + receive: state.ActiveCoin.receive, + balance: state.ActiveCoin.balance, + cache: state.ActiveCoin.cache, + nativeActiveSection: state.ActiveCoin.nativeActiveSection, + activeAddress: state.ActiveCoin.activeAddress, + lastSendToResponse: state.ActiveCoin.lastSendToResponse, + addresses: state.ActiveCoin.addresses, + }, + Dashboard: { + activeHandle: state.Dashboard.activeHandle, + } + + }; + +}; + +export default connect(mapStateToProps)(SendCoin); \ No newline at end of file