Browse Source

WalletTxtInfo prop refactor

all-modes
Miika Turunen 8 years ago
parent
commit
87bddd9590
  1. 2
      react/src/components/dashboard/main/dashboard.render.js
  2. 19
      react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js

2
react/src/components/dashboard/main/dashboard.render.js

@ -33,7 +33,7 @@ const DashboardRender = function() {
<SendCoin />
{ !this.isNativeMode() && <ReceiveCoin /> }
{ !this.isNativeMode() && <WalletsData /> }
<WalletsTxInfo {...this.props} />
<WalletsTxInfo />
<WalletsNative {...this.props} />
</div>
{ this.isSectionActive('edex') &&

19
react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js

@ -5,8 +5,8 @@ import Store from '../../../store';
import WalletsTxInfoRender from './walletsTxInfo.render';
class WalletsTxInfo extends React.Component {
constructor(props) {
super(props);
constructor() {
super();
this.state = {
activeTab: 0,
};
@ -52,4 +52,17 @@ class WalletsTxInfo extends React.Component {
}
}
export default WalletsTxInfo;
const mapStateToProps = (state) => {
return {
ActiveCoin: {
mode: state.ActiveCoin.mode,
txhistory: state.ActiveCoin.txhistory,
showTransactionInfo: state.ActiveCoin.showTransactionInfo,
nativeActiveSection: state.ActiveCoin.nativeActiveSection,
activeAddress: state.ActiveCoin.activeAddress,
}
};
};
export default connect(mapStateToProps)(WalletsTxInfo);

Loading…
Cancel
Save