aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js')
-rw-r--r--ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
index 4b194c995..59d48400d 100644
--- a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
+++ b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
@@ -1,11 +1,12 @@
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'
const { hideModal, removeAccount } = require('../../../actions')
const mapStateToProps = state => {
return {
- identity: state.appState.modal.modalState.props.identity,
network: state.metamask.network,
}
}
@@ -17,4 +18,7 @@ const mapDispatchToProps = dispatch => {
}
}
-export default connect(mapStateToProps, mapDispatchToProps)(ConfirmRemoveAccount)
+export default compose(
+ withModalProps,
+ connect(mapStateToProps, mapDispatchToProps)
+)(ConfirmRemoveAccount)