diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-08-08 04:24:58 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-08-08 04:24:58 +0800 |
commit | f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578 (patch) | |
tree | cba6f24fd72a137c2ebe5589261a73447be186be /ui/app/components/loading.js | |
parent | e7f838e626ff1ce29490a081d7ee3f917745dd62 (diff) | |
parent | 57abc58d623b66a091987a944d8c45737f4feabe (diff) | |
download | tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar.gz tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar.bz2 tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar.lz tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar.xz tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.tar.zst tangerine-wallet-browser-f3b42f1e3389253c4f5b4e78fa20ae8c80ef3578.zip |
Merge branch 'master' into transactionControllerRefractor
Diffstat (limited to 'ui/app/components/loading.js')
-rw-r--r-- | ui/app/components/loading.js | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/ui/app/components/loading.js b/ui/app/components/loading.js index 87d6f5d20..163792584 100644 --- a/ui/app/components/loading.js +++ b/ui/app/components/loading.js @@ -1,7 +1,6 @@ const inherits = require('util').inherits const Component = require('react').Component const h = require('react-hyperscript') -const ReactCSSTransitionGroup = require('react-addons-css-transition-group') inherits(LoadingIndicator, Component) @@ -15,35 +14,28 @@ LoadingIndicator.prototype.render = function () { const { isLoading, loadingMessage } = this.props return ( - h(ReactCSSTransitionGroup, { - className: 'css-transition-group', - transitionName: 'loader', - transitionEnterTimeout: 150, - transitionLeaveTimeout: 150, + isLoading ? h('.full-flex-height', { + style: { + left: '0px', + zIndex: 10, + position: 'absolute', + flexDirection: 'column', + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + height: '100%', + width: '100%', + background: 'rgba(255, 255, 255, 0.8)', + }, }, [ + h('img', { + src: 'images/loading.svg', + }), - isLoading ? h('div', { - style: { - zIndex: 10, - position: 'absolute', - flexDirection: 'column', - display: 'flex', - justifyContent: 'center', - alignItems: 'center', - height: '100%', - width: '100%', - background: 'rgba(255, 255, 255, 0.8)', - }, - }, [ - h('img', { - src: 'images/loading.svg', - }), - - h('br'), - - showMessageIfAny(loadingMessage), - ]) : null, - ]) + h('br'), + + showMessageIfAny(loadingMessage), + ]) : null ) } |