aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/account
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-18 09:08:07 -0700
committerAdam Soltys <[email protected]>2024-10-18 09:09:14 -0700
commit002cd9134d2e23bec34f838f6d6fefba41f2d530 (patch)
tree92fa0e0ab54ce1a715d25f458de8b8ed8cc70bd5 /src/routes/(app)/account
parentf6bfe889d91bc6e36b0300d7b618f10158efe176 (diff)
downloadcoinos-ui-002cd9134d2e23bec34f838f6d6fefba41f2d530.tar.gz
coinos-ui-002cd9134d2e23bec34f838f6d6fefba41f2d530.zip
biome format
Diffstat (limited to 'src/routes/(app)/account')
-rw-r--r--src/routes/(app)/account/[id]/+page.server.ts3
-rw-r--r--src/routes/(app)/account/[id]/+page.svelte4
-rw-r--r--src/routes/(app)/account/pass/+page.svelte4
-rw-r--r--src/routes/(app)/account/savings/+page.svelte4
-rw-r--r--src/routes/(app)/account/setup/+page.svelte3
5 files changed, 9 insertions, 9 deletions
diff --git a/src/routes/(app)/account/[id]/+page.server.ts b/src/routes/(app)/account/[id]/+page.server.ts
index 35b5517d..e521f15b 100644
--- a/src/routes/(app)/account/[id]/+page.server.ts
+++ b/src/routes/(app)/account/[id]/+page.server.ts
@@ -1,11 +1,10 @@
import { error, redirect } from "@sveltejs/kit";
import { auth, get, post, fd } from "$lib/utils";
-
export let load = async ({ cookies, params }) => {
let account = await get(`/account/${params.id}`, auth(cookies));
return { account };
-}
+};
export const actions = {
default: async ({ cookies, params, request }) => {
diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte
index 3f7bb900..63fd7a42 100644
--- a/src/routes/(app)/account/[id]/+page.svelte
+++ b/src/routes/(app)/account/[id]/+page.svelte
@@ -37,10 +37,10 @@
}
};
-let nwc;
+ let nwc;
let revealNwc = () =>
(nwc = `nostr+walletconnect://${pk}?relay=${encodeURIComponent(
- relay
+ relay,
)}&secret=${user.nwc}`);
</script>
diff --git a/src/routes/(app)/account/pass/+page.svelte b/src/routes/(app)/account/pass/+page.svelte
index c063d647..5becf337 100644
--- a/src/routes/(app)/account/pass/+page.svelte
+++ b/src/routes/(app)/account/pass/+page.svelte
@@ -39,12 +39,12 @@
try {
let seed = await encrypt(
mnemonicToEntropy($mnemonic, wordlist),
- password
+ password,
);
let master = HDKey.fromMasterSeed(
await mnemonicToSeed($mnemonic, password),
- versions
+ versions,
);
let child = master.derive("m/84'/0'/0'");
diff --git a/src/routes/(app)/account/savings/+page.svelte b/src/routes/(app)/account/savings/+page.svelte
index f9c6305c..8cc24aa2 100644
--- a/src/routes/(app)/account/savings/+page.svelte
+++ b/src/routes/(app)/account/savings/+page.svelte
@@ -4,7 +4,9 @@
</script>
<div class="space-y-5">
- <h1 class="text-center text-3xl font-semibold">{$t("accounts.accountSetup")}</h1>
+ <h1 class="text-center text-3xl font-semibold">
+ {$t("accounts.accountSetup")}
+ </h1>
<div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-2">
<div class="space-y-5">
diff --git a/src/routes/(app)/account/setup/+page.svelte b/src/routes/(app)/account/setup/+page.svelte
index f5a5ac09..24b6e248 100644
--- a/src/routes/(app)/account/setup/+page.svelte
+++ b/src/routes/(app)/account/setup/+page.svelte
@@ -12,8 +12,7 @@
<div>
<div class="text-xl">Cash</div>
<div class="text-secondary">
- Your balance is held with a custodian. Payments are fast and
- free.
+ Your balance is held with a custodian. Payments are fast and free.
</div>
</div>
</div>