diff options
Diffstat (limited to 'ui/app/components/loading.js')
-rw-r--r-- | ui/app/components/loading.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ui/app/components/loading.js b/ui/app/components/loading.js deleted file mode 100644 index cb6fa51fb..000000000 --- a/ui/app/components/loading.js +++ /dev/null @@ -1,30 +0,0 @@ -const { Component } = require('react') -const h = require('react-hyperscript') -const PropTypes = require('prop-types') - -class LoadingIndicator extends Component { - renderMessage () { - const { loadingMessage } = this.props - return loadingMessage && h('span', loadingMessage) - } - - render () { - return ( - h('.full-flex-height.loading-overlay', {}, [ - h('img', { - src: 'images/loading.svg', - }), - - h('br'), - - this.renderMessage(), - ]) - ) - } -} - -LoadingIndicator.propTypes = { - loadingMessage: PropTypes.string, -} - -module.exports = LoadingIndicator |