You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
948 B

import React from 'react';
import { connect } from 'react-redux';
import WalletsNativeInfoRender from './walletsInfo.render';
import { toggleClaimInterestModal } from '../../../actions/actionCreators';
import Store from '../../../store';
class WalletsInfo extends React.Component {
constructor() {
super();
this.openClaimInterestModal = this.openClaimInterestModal.bind(this);
}
openClaimInterestModal() {
Store.dispatch(toggleClaimInterestModal(true));
}
render() {
if (this.props &&
this.props.ActiveCoin &&
(this.props.ActiveCoin.progress || this.props.Dashboard.electrumCoins) &&
this.props.ActiveCoin.activeSection === 'settings') {
return WalletsNativeInfoRender.call(this);
}
return null;
}
}
const mapStateToProps = (state) => {
return {
ActiveCoin: state.ActiveCoin,
Dashboard: state.Dashboard,
};
};
export default connect(mapStateToProps)(WalletsInfo);