blob: 0a3cda5b6f470a68ab98e112a121a1fa34e0bb6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { connect } from 'react-redux'
import { compose } from 'recompose'
import ConfirmRemoveAccount from './confirm-remove-account.component'
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
import { removeAccount } from '../../../../store/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)
|