diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-06-15 06:30:03 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-06-15 06:30:47 +0800 |
commit | 96d416c486c4efd3698d41a38a02c6379fbb61b1 (patch) | |
tree | f8de9a80464c9634b14d326538573f052810d17c /ui | |
parent | 6fda78cd2b850c7414d598227a0ef6b4235f241e (diff) | |
download | tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar.gz tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar.bz2 tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar.lz tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar.xz tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.tar.zst tangerine-wallet-browser-96d416c486c4efd3698d41a38a02c6379fbb61b1.zip |
Vertically center loading indication
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/token-list.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js index 90e7e876e..c9e86dd22 100644 --- a/ui/app/components/token-list.js +++ b/ui/app/components/token-list.js @@ -4,7 +4,6 @@ const inherits = require('util').inherits const TokenTracker = require('eth-token-tracker') const TokenCell = require('./token-cell.js') const contracts = require('eth-contract-metadata') -const Loading = require('./loading') const tokens = [] for (const address in contracts) { @@ -29,7 +28,16 @@ TokenList.prototype.render = function () { const { userAddress } = this.props - if (isLoading) return h(Loading, { isLoading }) + if (isLoading) { + return h('div', { + style: { + display: 'flex', + height: '250px', + alignItems: 'center', + justifyContent: 'center', + }, + }, 'Loading') + } const network = this.props.network |