mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-05 19:50:32 +08:00
Show loader when loading address type
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import { ethers } from 'ethers';
|
||||
import { explorerLink } from '@app/utils';
|
||||
import Blockies from '@app/Blockies.svelte';
|
||||
import Loading from '@app/Loading.svelte';
|
||||
import type { Config } from '@app/config';
|
||||
|
||||
export let address: string;
|
||||
@@ -38,6 +39,10 @@
|
||||
.address a {
|
||||
border-bottom: none;
|
||||
}
|
||||
.loading {
|
||||
margin-left: 1rem;
|
||||
width: 4rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="address">
|
||||
@@ -50,5 +55,6 @@
|
||||
<span class="badge">contract</span>
|
||||
{:else}
|
||||
<a href={explorerLink(address, config)} target="_blank">{checksumAddress}</a>
|
||||
<div class="loading"><Loading small /></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user