Improve Nostr Zap support

This commit is contained in:
Djuri 2024-08-31 15:37:20 +02:00
parent 876f3b01d8
commit 21a7192e6d
7 changed files with 206 additions and 186 deletions

View file

@ -2,6 +2,7 @@
export let status = {};
import RocketIcon from '../icons/RocketIcon.svelte';
import PickaxeIcon from '../icons/PickaxeIcon.svelte';
import ZapIcon from '../icons/ZapIcon.svelte';
const isSplitText = (str: string) => {
return str.includes('/');
@ -25,9 +26,12 @@
{#if char.endsWith('pickaxe')}
<PickaxeIcon></PickaxeIcon>
{/if}
{#if char.endsWith('bolt')}
<ZapIcon></ZapIcon>
{/if}
</div>
{:else if char === 'STS'}
<div class="digit sats"></div>
<div class="digit sats">S</div>
{:else if char.length >= 3}
<div class="mediumText">{char}</div>
{:else if char.length === 0 || char === ' '}