Improve Nostr Zap support
This commit is contained in:
parent
876f3b01d8
commit
21a7192e6d
7 changed files with 206 additions and 186 deletions
|
@ -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 === ' '}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue