Show network badge

This commit is contained in:
Alexis Sellier
2021-05-19 13:23:48 +02:00
parent 2a7d5423c4
commit 0b4e009d89
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@
--color-secondary-2: #2c326d;
--color-secondary-6: #e3e3ff;
--color-tertiary: #55ffff;
--color-tertiary-background: #55ffff11;
--color-tertiary-1: #214047;
--color-tertiary-2: #2c326d;
--color-tertiary-6: #e3e3ff;
+14
View File
@@ -70,6 +70,14 @@
margin-left: 2rem;
width: 9.75rem;
}
.network {
color: var(--color-tertiary);
background-color: var(--color-tertiary-background);
line-height: 1.5em;
padding: 0.5rem 1rem;
margin: 0 2rem;
border-radius: var(--border-radius);
}
</style>
{#if $error}
@@ -97,6 +105,12 @@
</div>
<div>
{#if config.network.name == 'ropsten'}
<span class="network">Ropsten</span>
{:else if config.network.name == 'rinkeby'}
<span class="network">Rinkeby</span>
{/if}
{#if address}
<span class="balance">
{formatBalance(tokenBalance)} <strong>RAD</strong>