reorder receive tabs and add mainnet < 25k warning

This commit is contained in:
Danny Morabito 2025-07-17 20:43:16 +02:00
parent dda80bb0b6
commit ab3a8da793
Signed by: dannym
GPG key ID: 7CC8056A5A04557E

View file

@ -24,11 +24,9 @@
<h3>Receive</h3> <h3>Receive</h3>
{#if $walletState.open} {#if $walletState.open}
<Tabs labels={["Bitcoin", "Lightning", "Liquid", "Cashu"]}> <Tabs labels={["Lightning", "Liquid", "Cashu", "Bitcoin"]}>
{#snippet children(idx)} {#snippet children(idx)}
{#if idx === 0} {#if idx === 0}
<ReceiveTab type="bitcoin" />
{:else if idx === 1}
<Tabs labels={["Address", "BOLT12"]}> <Tabs labels={["Address", "BOLT12"]}>
{#snippet children(idx)} {#snippet children(idx)}
{#if idx === 0} {#if idx === 0}
@ -38,10 +36,19 @@
{/if} {/if}
{/snippet} {/snippet}
</Tabs> </Tabs>
{:else if idx === 2} {:else if idx === 1}
<ReceiveTab type="liquid" /> <ReceiveTab type="liquid" />
{:else} {:else if idx === 2}
<CashuTab /> <CashuTab />
{:else}
<p>
<b>Warning</b>: This is a bitcoin mainnet address<br />
Due to the way PortalBTC works, we cannot support receiving amounts
less than 25_000 sats; please use lightning, liquid, or cashu for such
amounts. Amounts lower than 25_000 sats sent to this address will become
unrecoverable.
</p>
<ReceiveTab type="bitcoin" />
{/if} {/if}
{/snippet} {/snippet}
</Tabs> </Tabs>