aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-09-18 01:34:29 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-09-20 05:31:10 +0800
commit5a6c333506e4000602c1a1106cee6d06fe83afa8 (patch)
tree2aed850f17114372eaca16ed7e77f42f87907713 /ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js
parent3e470fee8a5560b605f7ad1060fb1eebafefd21e (diff)
downloadtangerine-wallet-browser-5a6c333506e4000602c1a1106cee6d06fe83afa8.tar.gz
tangerine-wallet-browser-5a6c333506e4000602c1a1106cee6d06fe83afa8.tar.zst
tangerine-wallet-browser-5a6c333506e4000602c1a1106cee6d06fe83afa8.zip
Switch existing modals from using Notification to Modal. Remove Notification component. Add CancelTransaction modal
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)