mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 04:46:10 +01:00
Vertically center loading indication
This commit is contained in:
parent
6fda78cd2b
commit
96d416c486
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user