2018-07-11 01:19:29 +02:00
|
|
|
import { connect } from 'react-redux'
|
2018-09-17 19:34:29 +02:00
|
|
|
import { compose } from 'recompose'
|
2018-07-11 01:19:29 +02:00
|
|
|
import ConfirmRemoveAccount from './confirm-remove-account.component'
|
2018-09-17 19:34:29 +02:00
|
|
|
import withModalProps from '../../../higher-order-components/with-modal-props'
|
2018-09-21 04:35:45 +02:00
|
|
|
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)),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-17 19:34:29 +02:00
|
|
|
export default compose(
|
|
|
|
withModalProps,
|
|
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
|
|
)(ConfirmRemoveAccount)
|