|
|
@ -29,14 +29,7 @@ TokenList.prototype.render = function () { |
|
|
|
const { userAddress } = this.props |
|
|
|
const { userAddress } = this.props |
|
|
|
|
|
|
|
|
|
|
|
if (isLoading) { |
|
|
|
if (isLoading) { |
|
|
|
return h('div', { |
|
|
|
return this.message('Loading') |
|
|
|
style: { |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
height: '250px', |
|
|
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
justifyContent: 'center', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, 'Loading') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const network = this.props.network |
|
|
|
const network = this.props.network |
|
|
@ -71,10 +64,21 @@ TokenList.prototype.render = function () { |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
`)].concat(tokenViews))
|
|
|
|
`)].concat(tokenViews.length ? tokenViews : this.message('No Tokens Found.')))
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TokenList.prototype.message = function (body) { |
|
|
|
|
|
|
|
return h('div', { |
|
|
|
|
|
|
|
style: { |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
height: '250px', |
|
|
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
justifyContent: 'center', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, body) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TokenList.prototype.componentDidMount = function () { |
|
|
|
TokenList.prototype.componentDidMount = function () { |
|
|
|
this.createFreshTokenTracker() |
|
|
|
this.createFreshTokenTracker() |
|
|
|
} |
|
|
|
} |
|
|
|