aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/modal.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-07 09:13:57 +0800
committerGitHub <noreply@github.com>2018-03-07 09:13:57 +0800
commit6a9ca29244f5e5234b338f93e1b1c1360a5446df (patch)
treee3f87f1e360648833913dc477d37b6a402223ded /ui/app/components/modals/modal.js
parenta4bd7992cd960b105f842e0e34637f2675a6665f (diff)
parent8e0131cbb52eae9d0fd07ac20d1e39bae99446e1 (diff)
downloadtangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.gz
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.bz2
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.lz
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.xz
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.tar.zst
tangerine-wallet-browser-6a9ca29244f5e5234b338f93e1b1c1360a5446df.zip
Merge branch 'master' into ImportAccountMessageV2
Diffstat (limited to 'ui/app/components/modals/modal.js')
-rw-r--r--ui/app/components/modals/modal.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js
index 97fe38292..8e9e58985 100644
--- a/ui/app/components/modals/modal.js
+++ b/ui/app/components/modals/modal.js
@@ -79,6 +79,7 @@ const MODALS = {
contents: [
h(DepositEtherModal, {}, []),
],
+ onHide: (props) => props.hideWarning(),
mobileModalStyle: {
width: '100%',
height: '100%',
@@ -286,6 +287,10 @@ function mapDispatchToProps (dispatch) {
hideModal: () => {
dispatch(actions.hideModal())
},
+ hideWarning: () => {
+ dispatch(actions.hideWarning())
+ },
+
}
}
@@ -308,7 +313,12 @@ Modal.prototype.render = function () {
{
className: 'modal',
keyboard: false,
- onHide: () => { this.onHide() },
+ onHide: () => {
+ if (modal.onHide) {
+ modal.onHide(this.props)
+ }
+ this.onHide()
+ },
ref: (ref) => {
this.modalRef = ref
},