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.
Tag:
Branch:
Tree:
91601ebe5e
develop
feature/default_network_editable
v10.22.3
${ noResults }
44 lines
1.0 KiB
44 lines
1.0 KiB
import { connect } from 'react-redux';
|
|||
|
import {
|
||
buyEth,
|
|||
hideModal,
|
|||
showModal,
|
|||
hideWarning,
|
|||
} from '../../../../store/actions';
|
|||
import {
|
|||
getIsTestnet,
|
|||
getIsMainnet,
|
|||
getCurrentChainId,
|
|||
getSelectedAddress,
|
|||
} from '../../../../selectors/selectors';
|
|||
import DepositEtherModal from './deposit-ether-modal.component';
|
|||
|
|||
|
function mapStateToProps(state) {
|
||
return {
|
|||
chainId: getCurrentChainId(state),
|
|||
isTestnet: getIsTestnet(state),
|
|||
isMainnet: getIsMainnet(state),
|
|||
address: getSelectedAddress(state),
|
|||
};
|
|||
}
|
|||
|
|||
|
function mapDispatchToProps(dispatch) {
|
||
return {
|
|||
toWyre: (address) => {
|
|||
dispatch(buyEth({ service: 'wyre', address }));
|
|||
},
|
|||
hideModal: () => {
|
|||
dispatch(hideModal());
|
|||
},
|
|||
hideWarning: () => {
|
|||
dispatch(hideWarning());
|
|||
},
|
|||
showAccountDetailModal: () => {
|
|||
dispatch(showModal({ name: 'ACCOUNT_DETAILS' }));
|
|||
},
|
|||
toFaucet: (chainId) => dispatch(buyEth({ chainId })),
|
|||
};
|
|||
}
|
|||
|
|||
export default connect(mapStateToProps, mapDispatchToProps)(DepositEtherModal);
|