1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js

23 lines
601 B
JavaScript
Raw Normal View History

2018-07-11 01:19:29 +02:00
import { connect } from 'react-redux'
import { compose } from 'recompose'
2018-07-11 01:19:29 +02:00
import ConfirmRemoveAccount from './confirm-remove-account.component'
import withModalProps from '../../../higher-order-components/with-modal-props'
import { removeAccount } from '../../../actions'
2018-07-11 01:19:29 +02:00
2018-07-11 06:20:40 +02:00
const mapStateToProps = state => {
return {
2018-07-12 19:19:51 +02:00
network: state.metamask.network,
2018-07-11 06:20:40 +02:00
}
}
2018-07-11 01:19:29 +02:00
const mapDispatchToProps = dispatch => {
return {
removeAccount: (address) => dispatch(removeAccount(address)),
}
}
export default compose(
withModalProps,
connect(mapStateToProps, mapDispatchToProps)
)(ConfirmRemoveAccount)