diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-05-01 09:28:34 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-05-01 09:58:37 +0800 |
commit | ffda954add95fc17049cd0f5386952dabfc4168b (patch) | |
tree | 01d10afc74b16872f7b189d7c3177714564ad47b /ui/app/components/loading.js | |
parent | 21349dd612f1eed0e4f97e4ebf27bed05d5b8992 (diff) | |
download | tangerine-wallet-browser-ffda954add95fc17049cd0f5386952dabfc4168b.tar.gz tangerine-wallet-browser-ffda954add95fc17049cd0f5386952dabfc4168b.tar.zst tangerine-wallet-browser-ffda954add95fc17049cd0f5386952dabfc4168b.zip |
Fix styling of the app spinner
Diffstat (limited to 'ui/app/components/loading.js')
-rw-r--r-- | ui/app/components/loading.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ui/app/components/loading.js b/ui/app/components/loading.js deleted file mode 100644 index b9afc550f..000000000 --- a/ui/app/components/loading.js +++ /dev/null @@ -1,34 +0,0 @@ -const { Component } = require('react') -const h = require('react-hyperscript') -const PropTypes = require('prop-types') -const classnames = require('classnames') - -class LoadingIndicator extends Component { - renderMessage () { - const { loadingMessage } = this.props - return loadingMessage && h('span', loadingMessage) - } - - render () { - return ( - h('.loading-overlay', { - className: classnames({ 'loading-overlay--full-screen': this.props.fullScreen }), - }, [ - h('.flex-center.flex-column', [ - h('img', { - src: 'images/loading.svg', - }), - - this.renderMessage(), - ]), - ]) - ) - } -} - -LoadingIndicator.propTypes = { - loadingMessage: PropTypes.string, - fullScreen: PropTypes.bool, -} - -module.exports = LoadingIndicator |