diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-11 07:19:29 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-11 07:19:29 +0800 |
commit | b9c2994d24e688305d63aaefd7fac88d88773ad9 (patch) | |
tree | 84ead9430283666999f20aef1cfcbda41de80854 /ui/app/components/modals/modal.js | |
parent | 9b81180ab10cf8ca59666104e862c0331e953591 (diff) | |
download | tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.gz tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.bz2 tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.lz tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.xz tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.zst tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.zip |
finish warning modal UI
Diffstat (limited to 'ui/app/components/modals/modal.js')
-rw-r--r-- | ui/app/components/modals/modal.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js index 85e85597a..758cfa4a2 100644 --- a/ui/app/components/modals/modal.js +++ b/ui/app/components/modals/modal.js @@ -1,4 +1,5 @@ -const Component = require('react').Component +const React = require('react') +const Component = React.Component const h = require('react-hyperscript') const inherits = require('util').inherits const connect = require('react-redux').connect @@ -20,6 +21,7 @@ const HideTokenConfirmationModal = require('./hide-token-confirmation-modal') const CustomizeGasModal = require('../customize-gas-modal') const NotifcationModal = require('./notification-modal') const ConfirmResetAccount = require('./confirm-reset-account') +const ConfirmRemoveAccount = require('./confirm-remove-account') const TransactionConfirmed = require('./transaction-confirmed') const WelcomeBeta = require('./welcome-beta') const Notification = require('./notification') @@ -241,6 +243,19 @@ const MODALS = { }, }, + CONFIRM_FORGET_ACCOUNT: { + contents: h(ConfirmRemoveAccount), + mobileModalStyle: { + ...modalContainerMobileStyle, + }, + laptopModalStyle: { + ...modalContainerLaptopStyle, + }, + contentStyle: { + borderRadius: '8px', + }, + }, + NEW_ACCOUNT: { contents: [ h(NewAccountModal, {}, []), @@ -370,7 +385,7 @@ Modal.prototype.render = function () { backdropStyle: BACKDROPSTYLE, closeOnClick: !disableBackdropClick, }, - children, + React.cloneElement(children, {...this.props.modalState.props}, null), ) } |