diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
| commit | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch) | |
| tree | d6bc2557c56b93177bb14aa376847c6e123a4862 /src/routes/(app)/settings/nostr | |
| parent | 13466248004327e9a026cb89f94926f9b060d1c1 (diff) | |
| download | coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip | |
format
Diffstat (limited to 'src/routes/(app)/settings/nostr')
| -rw-r--r-- | src/routes/(app)/settings/nostr/+page.svelte | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte index c91150a3..35ae2b92 100644 --- a/src/routes/(app)/settings/nostr/+page.svelte +++ b/src/routes/(app)/settings/nostr/+page.svelte @@ -46,9 +46,7 @@ const DM_RELAYS_LIST = PUBLIC_DM_RELAYS.split(","); const pool = new SimplePool(); getPreferredRelays(user.pubkey).then((relays) => { - const relayEntry = document.getElementById( - "dmRelays", - ) as HTMLTextAreaElement | null; + const relayEntry = document.getElementById("dmRelays") as HTMLTextAreaElement | null; if (relayEntry) relayEntry.value = relays.join("\n"); }); </script> @@ -74,22 +72,11 @@ {#if app.max_amount > 0} <div class="flex gap-1 text-base"> <div class="flex items-center"> - <iconify-icon - noobserver - icon="ph:lightning-fill" - class="text-yellow-300" + <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300" ></iconify-icon> {#if $fiat && $rate} - {f( - (app.spent * ($rate as number)) / sats, - user.currency, - locale, - )} / - {f( - (app.max_amount * ($rate as number)) / sats, - user.currency, - locale, - )} + {f((app.spent * ($rate as number)) / sats, user.currency, locale)} / + {f((app.max_amount * ($rate as number)) / sats, user.currency, locale)} {:else} {s(app.spent, locale)} / {s(app.max_amount, locale)} @@ -152,8 +139,7 @@ class:btn-disabled={!app.secret} aria-label="Open nostr" > - <iconify-icon icon="ph:arrow-square-out-bold" width="32" - ></iconify-icon> + <iconify-icon icon="ph:arrow-square-out-bold" width="32"></iconify-icon> <div>{$t("accounts.connect")}</div> </a> </div> @@ -202,8 +188,7 @@ class="my-auto btn btn-circle !w-auto grow" aria-label="QR" > - <iconify-icon noobserver icon="ph:qr-code-bold" width="32" - ></iconify-icon> + <iconify-icon noobserver icon="ph:qr-code-bold" width="32"></iconify-icon> {$t("accounts.qr")} </a> </div> @@ -219,9 +204,7 @@ {#if user.nsec} <div class="space-y-2"> - <label for="seedphrase" class="font-bold" - >{$t("user.settings.nostrKeys")}</label - > + <label for="seedphrase" class="font-bold">{$t("user.settings.nostrKeys")}</label> <p class="text-secondary mb-1"> {$t("user.settings.nostrDescription")} @@ -230,12 +213,10 @@ <div class="flex flex-wrap sm:flex-nowrap gap-2"> <button type="button" class="btn !w-auto flex-grow" onclick={toggleNsec}> {#if revealNsec} - <iconify-icon noobserver icon="ph:eye-slash-bold" width="32" - ></iconify-icon> + <iconify-icon noobserver icon="ph:eye-slash-bold" width="32"></iconify-icon> {$t("user.settings.hideNsec")} {:else} - <iconify-icon noobserver icon="ph:warning-bold" width="32" - ></iconify-icon> + <iconify-icon noobserver icon="ph:warning-bold" width="32"></iconify-icon> {$t("user.settings.revealNsec")} {/if} </button> |
