|
|
@ -217,17 +217,33 @@ class ReceiveCoin extends React.Component { |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
const mapStateToProps = (state) => { |
|
|
|
return { |
|
|
|
coin: state.ActiveCoin.coin, |
|
|
|
mode: state.ActiveCoin.mode, |
|
|
|
receive: state.ActiveCoin.receive, |
|
|
|
balance: state.ActiveCoin.balance, |
|
|
|
cache: state.ActiveCoin.cache, |
|
|
|
activeSection: state.ActiveCoin.activeSection, |
|
|
|
activeAddress: state.ActiveCoin.activeAddress, |
|
|
|
addresses: state.ActiveCoin.addresses, |
|
|
|
}; |
|
|
|
const mapStateToProps = (state, props) => { |
|
|
|
if (props && |
|
|
|
props.activeSection && |
|
|
|
props.renderTableOnly) { |
|
|
|
return { |
|
|
|
coin: state.ActiveCoin.coin, |
|
|
|
mode: state.ActiveCoin.mode, |
|
|
|
receive: state.ActiveCoin.receive, |
|
|
|
balance: state.ActiveCoin.balance, |
|
|
|
cache: state.ActiveCoin.cache, |
|
|
|
activeSection: props.activeSection, |
|
|
|
activeAddress: state.ActiveCoin.activeAddress, |
|
|
|
addresses: state.ActiveCoin.addresses, |
|
|
|
renderTableOnly: props.renderTableOnly, |
|
|
|
}; |
|
|
|
} else { |
|
|
|
return { |
|
|
|
coin: state.ActiveCoin.coin, |
|
|
|
mode: state.ActiveCoin.mode, |
|
|
|
receive: state.ActiveCoin.receive, |
|
|
|
balance: state.ActiveCoin.balance, |
|
|
|
cache: state.ActiveCoin.cache, |
|
|
|
activeSection: state.ActiveCoin.activeSection, |
|
|
|
activeAddress: state.ActiveCoin.activeAddress, |
|
|
|
addresses: state.ActiveCoin.addresses, |
|
|
|
}; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
export default connect(mapStateToProps)(ReceiveCoin); |