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}
|
symbol={balance.wei ? network.name : null}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
{balance.isPending ? (
|
{balance.wei && (
|
||||||
<Spinner />
|
<React.Fragment>
|
||||||
) : (
|
{balance.isPending ? (
|
||||||
!isOffline && (
|
<Spinner />
|
||||||
<button
|
) : (
|
||||||
className="AccountInfo-section-refresh"
|
!isOffline && (
|
||||||
onClick={this.props.setAccountBalance}
|
<button
|
||||||
>
|
className="AccountInfo-section-refresh"
|
||||||
<i className="fa fa-refresh" />
|
onClick={this.props.setAccountBalance}
|
||||||
</button>
|
>
|
||||||
)
|
<i className="fa fa-refresh" />
|
||||||
|
</button>
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue