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

23 lines
601 B
JavaScript

import { connect } from 'react-redux'
import { compose } from 'recompose'
import ConfirmRemoveAccount from './confirm-remove-account.component'
import withModalProps from '../../../higher-order-components/with-modal-props'
import { removeAccount } from '../../../actions'
const mapStateToProps = state => {
return {
network: state.metamask.network,
}
}
const mapDispatchToProps = dispatch => {
return {
removeAccount: (address) => dispatch(removeAccount(address)),
}
}
export default compose(
withModalProps,
connect(mapStateToProps, mapDispatchToProps)
)(ConfirmRemoveAccount)