mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-18 05:56:54 +00:00
Hide refresh button and its spinner on initial balance fetch (#1108)
This commit is contained in:
parent
1ff26baa63
commit
cec0d690c7
@ -134,17 +134,21 @@ class AccountInfo extends React.Component<Props, State> {
|
||||
symbol={balance.wei ? network.name : null}
|
||||
/>
|
||||
</span>
|
||||
{balance.isPending ? (
|
||||
<Spinner />
|
||||
) : (
|
||||
!isOffline && (
|
||||
<button
|
||||
className="AccountInfo-section-refresh"
|
||||
onClick={this.props.setAccountBalance}
|
||||
>
|
||||
<i className="fa fa-refresh" />
|
||||
</button>
|
||||
)
|
||||
{balance.wei && (
|
||||
<React.Fragment>
|
||||
{balance.isPending ? (
|
||||
<Spinner />
|
||||
) : (
|
||||
!isOffline && (
|
||||
<button
|
||||
className="AccountInfo-section-refresh"
|
||||
onClick={this.props.setAccountBalance}
|
||||
>
|
||||
<i className="fa fa-refresh" />
|
||||
</button>
|
||||
)
|
||||
)}
|
||||
</React.Fragment>
|
||||
)}
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user