1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js

21 lines
578 B
JavaScript
Raw Normal View History

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)