diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-09 04:37:41 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-09 04:37:41 +0800 |
commit | f72f57dc6c75f6c0abfd90765073e41487f6f584 (patch) | |
tree | be0625bd85f3262cd3ef7ad346b061a8e933f3c7 /ui/app/app.js | |
parent | aab0fda9acf58c638a03a43de4260c079adf258f (diff) | |
download | tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar.gz tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar.bz2 tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar.lz tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar.xz tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.tar.zst tangerine-wallet-browser-f72f57dc6c75f6c0abfd90765073e41487f6f584.zip |
Implement global modal
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 660a68230..71e767b91 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -36,6 +36,7 @@ const HDRestoreVaultScreen = require('./keychains/hd/restore-vault') const RevealSeedConfirmation = require('./keychains/hd/recover-seed/confirmation') const ReactCSSTransitionGroup = require('react-addons-css-transition-group') const AccountDropdowns = require('./components/account-dropdowns').AccountDropdowns +const Modal = require('./components/modal') module.exports = connect(mapStateToProps, mapDispatchToProps)(App) @@ -105,6 +106,9 @@ App.prototype.render = function () { }, }, [ + // global modal + this.renderGlobalModal(), + // app bar this.renderAppBar(), @@ -126,6 +130,12 @@ App.prototype.render = function () { ) } +App.prototype.renderGlobalModal = function() { + return h(Modal, { + ref: "modalRef", + }, ['test modal']) +} + App.prototype.renderSidebar = function() { // if (!this.props.sidebarOpen) { // return null; |