diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-11 12:20:40 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-11 12:20:40 +0800 |
commit | 523cf9ad33d88719520ae5e7293329d133b64d4d (patch) | |
tree | d547846aa4938afbd90d242548f89f11200fe1b6 /ui/app/components/modals | |
parent | b9c2994d24e688305d63aaefd7fac88d88773ad9 (diff) | |
download | tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar.gz tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar.bz2 tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar.lz tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar.xz tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.tar.zst tangerine-wallet-browser-523cf9ad33d88719520ae5e7293329d133b64d4d.zip |
account removal is working
Diffstat (limited to 'ui/app/components/modals')
-rw-r--r-- | ui/app/components/modals/confirm-remove-account/confirm-remove-account.container.js | 8 | ||||
-rw-r--r-- | ui/app/components/modals/modal.js | 5 |
2 files changed, 9 insertions, 4 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 9a612f2f6..fcb149b3f 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 @@ -3,6 +3,12 @@ import ConfirmRemoveAccount from './confirm-remove-account.component' const { hideModal, removeAccount } = require('../../../actions') +const mapStateToProps = state => { + return { + address: state.appState.modal.modalState.props.address, + } +} + const mapDispatchToProps = dispatch => { return { hideModal: () => dispatch(hideModal()), @@ -10,4 +16,4 @@ const mapDispatchToProps = dispatch => { } } -export default connect(null, mapDispatchToProps)(ConfirmRemoveAccount) +export default connect(mapStateToProps, mapDispatchToProps)(ConfirmRemoveAccount) diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js index 758cfa4a2..9ace56661 100644 --- a/ui/app/components/modals/modal.js +++ b/ui/app/components/modals/modal.js @@ -1,5 +1,4 @@ -const React = require('react') -const Component = React.Component +const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const connect = require('react-redux').connect @@ -385,7 +384,7 @@ Modal.prototype.render = function () { backdropStyle: BACKDROPSTYLE, closeOnClick: !disableBackdropClick, }, - React.cloneElement(children, {...this.props.modalState.props}, null), + children, ) } |