2018-07-11 01:19:29 +02:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import ConfirmRemoveAccount from './confirm-remove-account.component'
|
|
|
|
|
|
|
|
const { hideModal, removeAccount } = require('../../../actions')
|
|
|
|
|
2018-07-11 06:20:40 +02:00
|
|
|
const mapStateToProps = state => {
|
|
|
|
return {
|
2018-07-12 19:19:51 +02:00
|
|
|
identity: state.appState.modal.modalState.props.identity,
|
|
|
|
network: state.metamask.network,
|
2018-07-11 06:20:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-11 01:19:29 +02:00
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
hideModal: () => dispatch(hideModal()),
|
|
|
|
removeAccount: (address) => dispatch(removeAccount(address)),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-11 06:20:40 +02:00
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ConfirmRemoveAccount)
|