aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/InvoiceTypes.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /src/components/InvoiceTypes.svelte
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'src/components/InvoiceTypes.svelte')
-rw-r--r--src/components/InvoiceTypes.svelte54
1 files changed, 15 insertions, 39 deletions
diff --git a/src/components/InvoiceTypes.svelte b/src/components/InvoiceTypes.svelte
index 9aa1330a..cfde1285 100644
--- a/src/components/InvoiceTypes.svelte
+++ b/src/components/InvoiceTypes.svelte
@@ -22,8 +22,7 @@
class="btn flex-nowrap !w-auto grow"
class:bg-base-300={type === types.bitcoin && address_type === "bech32"}
class:text-secondary={type === types.bitcoin && address_type === "bech32"}
- class:hidden={activeOnly &&
- (type !== types.bitcoin || address_type !== "bech32")}
+ class:hidden={activeOnly && (type !== types.bitcoin || address_type !== "bech32")}
onclick={() => (activeOnly ? toggleType() : setType(types.bitcoin))}
>
<img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" />
@@ -34,10 +33,8 @@
class="btn flex-nowrap !w-auto grow"
class:bg-base-300={type === types.bitcoin && address_type === "bech32m"}
class:text-secondary={type === types.bitcoin && address_type === "bech32m"}
- class:hidden={activeOnly &&
- (type !== types.bitcoin || address_type !== "bech32m")}
- onclick={() =>
- activeOnly ? toggleType() : setType(types.bitcoin, "bech32m")}
+ class:hidden={activeOnly && (type !== types.bitcoin || address_type !== "bech32m")}
+ onclick={() => (activeOnly ? toggleType() : setType(types.bitcoin, "bech32m"))}
>
<img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" />
<div class="my-auto text-lg">Taproot</div>
@@ -47,10 +44,8 @@
class="btn flex-nowrap !w-auto grow"
class:bg-base-300={type === types.bitcoin && address_type === "legacy"}
class:text-secondary={type === types.bitcoin && address_type === "legacy"}
- class:hidden={activeOnly &&
- (type !== types.bitcoin || address_type !== "legacy")}
- onclick={() =>
- activeOnly ? toggleType() : setType(types.bitcoin, "legacy")}
+ class:hidden={activeOnly && (type !== types.bitcoin || address_type !== "legacy")}
+ onclick={() => (activeOnly ? toggleType() : setType(types.bitcoin, "legacy"))}
>
<img src="/images/bitcoin.svg" class="w-8" alt="Bitcoin" />
<div class="my-auto text-lg">Legacy</div>
@@ -62,10 +57,8 @@
<div class="flex flex-wrap gap-2">
<button
class="btn flex-nowrap !w-auto grow"
- class:bg-base-300={type === types.lightning &&
- $page.url.pathname.includes("/receive")}
- class:text-secondary={type === types.lightning &&
- $page.url.pathname.includes("/receive")}
+ class:bg-base-300={type === types.lightning && $page.url.pathname.includes("/receive")}
+ class:text-secondary={type === types.lightning && $page.url.pathname.includes("/receive")}
class:hidden={activeOnly &&
(type !== types.lightning || !$page.url.pathname.includes("/receive"))}
onclick={() => {
@@ -77,14 +70,9 @@
}
}}
>
- <div
- class="bg-black rounded-full w-8 h-8 items-center justify-center flex"
- >
+ <div class="bg-black rounded-full w-8 h-8 items-center justify-center flex">
<div class="m-auto">
- <iconify-icon
- noobserver
- icon="ph:lightning-fill"
- class="text-yellow-300 text-2xl"
+ <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300 text-2xl"
></iconify-icon>
</div>
</div>
@@ -97,14 +85,9 @@
class:hidden={activeOnly && type !== types.bolt12}
onclick={() => (activeOnly ? toggleType() : setType(types.bolt12))}
>
- <div
- class="bg-black rounded-full w-8 h-8 items-center justify-center flex"
- >
+ <div class="bg-black rounded-full w-8 h-8 items-center justify-center flex">
<div class="m-auto">
- <iconify-icon
- noobserver
- icon="ph:lightning-fill"
- class="text-yellow-300 text-2xl"
+ <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300 text-2xl"
></iconify-icon>
</div>
</div>
@@ -113,10 +96,8 @@
<button
class="btn flex-nowrap !w-auto grow"
- class:bg-base-300={type === types.lightning &&
- !$page.url.pathname.includes("/receive")}
- class:text-secondary={type === types.lightning &&
- !$page.url.pathname.includes("/receive")}
+ class:bg-base-300={type === types.lightning && !$page.url.pathname.includes("/receive")}
+ class:text-secondary={type === types.lightning && !$page.url.pathname.includes("/receive")}
class:hidden={activeOnly &&
(type !== types.lightning || $page.url.pathname.includes("/receive"))}
onclick={() => {
@@ -128,14 +109,9 @@
}
}}
>
- <div
- class="bg-black rounded-full w-8 h-8 items-center justify-center flex"
- >
+ <div class="bg-black rounded-full w-8 h-8 items-center justify-center flex">
<div class="m-auto">
- <iconify-icon
- noobserver
- icon="ph:lightning-fill"
- class="text-yellow-300 text-2xl"
+ <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300 text-2xl"
></iconify-icon>
</div>
</div>