diff options
| author | Adam Soltys <[email protected]> | 2024-11-12 15:55:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-12 15:57:10 -0800 |
| commit | e6742ec5b333e5b3b7d174eae9f79c7d63b4b4e9 (patch) | |
| tree | dd80d718985bbfb612cc3e03e631d83d7e4c44df /src/components | |
| parent | 96b8ddb2a0d053347861509c0e6d70b28da2dbcd (diff) | |
| download | coinos-ui-e6742ec5b333e5b3b7d174eae9f79c7d63b4b4e9.tar.gz coinos-ui-e6742ec5b333e5b3b7d174eae9f79c7d63b4b4e9.zip | |
bolt
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Balance.svelte | 2 | ||||
| -rw-r--r-- | src/components/Numpad.svelte | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index 74cb2939..0129d1ab 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -34,7 +34,7 @@ {#if isNaN(rate)} <div class="text-gray-200">—</div> {:else} - {fiat(balance, rate).toFixed(2)} {user.currency} + {f(fiat(balance, rate))} {user.currency} {/if} </div> {/if} diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte index 1cd59abe..bbafc196 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -203,7 +203,10 @@ class="text-5xl md:text-6xl font-semibold tracking-widest flex justify-center" > <div class="my-auto" class:text-5xl={!$fiat}> - {$fiat ? symbol : "⚡️"} + {#if $fiat}{symbol}{:else} + <iconify-icon icon="ph:lightning-fill" class="text-yellow-300" + ></iconify-icon> + {/if} </div> <div use:focus @@ -221,7 +224,13 @@ class="flex items-center justify-center text-2xl cursor-pointer" on:click|preventDefault|stopPropagation={swap} > - {$fiat ? "⚡️" + s(amount) : f(amountFiat, currency)} + {#if $fiat} + <iconify-icon icon="ph:lightning-fill" class="text-yellow-300" + ></iconify-icon> + {s(amount)} + {:else} + {f(amountFiat, currency)} {currency} + {/if} </div> </div> |
