diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-18 15:56:52 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-18 16:03:07 +0800 |
commit | 053044fb6561bb3fe7b87c61bf5d5d2750c46c58 (patch) | |
tree | 27347ef40a07a190911880f06ca10d60d62ff2ce /ui/app/components/loading.js | |
parent | de7fc781a56fe21c01d8038b01da01fdec90f219 (diff) | |
download | tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar.gz tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar.bz2 tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar.lz tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar.xz tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.tar.zst tangerine-wallet-browser-053044fb6561bb3fe7b87c61bf5d5d2750c46c58.zip |
Fix spinner layout
Diffstat (limited to 'ui/app/components/loading.js')
-rw-r--r-- | ui/app/components/loading.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ui/app/components/loading.js b/ui/app/components/loading.js index cb6fa51fb..b9afc550f 100644 --- a/ui/app/components/loading.js +++ b/ui/app/components/loading.js @@ -1,6 +1,7 @@ const { Component } = require('react') const h = require('react-hyperscript') const PropTypes = require('prop-types') +const classnames = require('classnames') class LoadingIndicator extends Component { renderMessage () { @@ -10,14 +11,16 @@ class LoadingIndicator extends Component { render () { return ( - h('.full-flex-height.loading-overlay', {}, [ - h('img', { - src: 'images/loading.svg', - }), + h('.loading-overlay', { + className: classnames({ 'loading-overlay--full-screen': this.props.fullScreen }), + }, [ + h('.flex-center.flex-column', [ + h('img', { + src: 'images/loading.svg', + }), - h('br'), - - this.renderMessage(), + this.renderMessage(), + ]), ]) ) } @@ -25,6 +28,7 @@ class LoadingIndicator extends Component { LoadingIndicator.propTypes = { loadingMessage: PropTypes.string, + fullScreen: PropTypes.bool, } module.exports = LoadingIndicator |