Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Show loader when loading address type
Alexis Sellier committed 4 years ago
commit ddd1fa80971285af22e360d800c5a053bdee5e7a
parent 262fef700286ba1eda365a33d246209d55f84fd3
1 file changed +6 -0
modified src/Address.svelte
@@ -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>