mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Always show an address while loading
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+1
-7
@@ -4,7 +4,6 @@
|
||||
import { ethers } from 'ethers';
|
||||
import { safeLink, explorerLink, identifyAddress, formatAddress, AddressType, parseEnsLabel } from '@app/utils';
|
||||
import { Profile, ProfileType } from '@app/profile';
|
||||
import Loading from '@app/Loading.svelte';
|
||||
import Avatar from "@app/Avatar.svelte";
|
||||
import type { Config } from '@app/config';
|
||||
|
||||
@@ -46,9 +45,6 @@
|
||||
.address a:hover {
|
||||
color: var(--color-foreground);
|
||||
}
|
||||
.loading {
|
||||
height: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="address" title={address} class:no-badge={noBadge}>
|
||||
@@ -66,9 +62,7 @@
|
||||
<span class="badge">contract</span>
|
||||
{:else if addressType === AddressType.EOA}
|
||||
<a href={`/users/${address}`}>{addressLabel}</a>
|
||||
{:else if profile?.name} <!-- While we're waiting to find out what address type it is -->
|
||||
{:else} <!-- While we're waiting to find out what address type it is -->
|
||||
<a href={explorerLink(address, config)} target="_blank">{addressLabel}</a>
|
||||
{:else}
|
||||
<div class="loading"><Loading small /></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user