aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-29 17:39:40 -0700
committerAdam Soltys <[email protected]>2022-08-29 17:39:40 -0700
commit99d537c6cf9feee56b618477ccddf3c1593ff84d (patch)
treedd01f9c0f56b4341ecb1b2f7475c02fa4d33f392
parent2f11cdc8e6f885089d4832b26e7dd78ad86eca45 (diff)
downloadcoinos-ui-99d537c6cf9feee56b618477ccddf3c1593ff84d.tar.gz
coinos-ui-99d537c6cf9feee56b618477ccddf3c1593ff84d.zip
clean up imports
-rw-r--r--src/routes/[username]/settings/+page.svelte6
-rw-r--r--src/routes/[username]/settings/_account.svelte2
-rw-r--r--src/routes/[username]/settings/_pos.svelte3
-rw-r--r--src/routes/[username]/settings/_security.svelte1
-rw-r--r--src/routes/withdraw/+server.js2
5 files changed, 3 insertions, 11 deletions
diff --git a/src/routes/[username]/settings/+page.svelte b/src/routes/[username]/settings/+page.svelte
index 38df7845..de012ddc 100644
--- a/src/routes/[username]/settings/+page.svelte
+++ b/src/routes/[username]/settings/+page.svelte
@@ -3,10 +3,8 @@
import Pos from './_pos.svelte';
import Security from './_security.svelte';
- import { AppHeader, Icon } from '$comp';
- import { user, colorTheme, rates, token } from '$lib/store';
+ import { AppHeader } from '$comp';
import { t } from '$lib/translations';
- import { success, failure, put } from '$lib/utils';
let tab = 'account';
@@ -19,7 +17,6 @@
$: ({ comp } = tabs.find((t) => t.name === tab));
</script>
-{#if $user}
<AppHeader />
<div class="my-20 px-3 md:px-0 w-full md:w-[400px] mx-auto space-y-8">
@@ -37,4 +34,3 @@
<svelte:component this={comp} />
</div>
-{/if}
diff --git a/src/routes/[username]/settings/_account.svelte b/src/routes/[username]/settings/_account.svelte
index 7ae1d3ad..084a39c8 100644
--- a/src/routes/[username]/settings/_account.svelte
+++ b/src/routes/[username]/settings/_account.svelte
@@ -1,5 +1,3 @@
-<svelte:options accessors={true} />
-
<script>
import { user, colorTheme, rates } from '$lib/store';
import { Icon, Toggle, LocaleSelector } from '$comp';
diff --git a/src/routes/[username]/settings/_pos.svelte b/src/routes/[username]/settings/_pos.svelte
index ed204549..f44f8312 100644
--- a/src/routes/[username]/settings/_pos.svelte
+++ b/src/routes/[username]/settings/_pos.svelte
@@ -1,9 +1,8 @@
-<svelte:options accessors={true} />
-
<script>
import { rates, user } from '$lib/store';
import { Icon, Toggle, LocaleSelector } from '$comp';
import { t } from '$lib/translations';
+ import { success, failure, put } from '$lib/utils';
const fiats = Object.keys($rates);
diff --git a/src/routes/[username]/settings/_security.svelte b/src/routes/[username]/settings/_security.svelte
index 33a84c0d..197317fc 100644
--- a/src/routes/[username]/settings/_security.svelte
+++ b/src/routes/[username]/settings/_security.svelte
@@ -1,4 +1,3 @@
-<svelte:options accessors={true} />
<script>
import { t } from '$lib/translations';
import { Icon } from '$comp';
diff --git a/src/routes/withdraw/+server.js b/src/routes/withdraw/+server.js
index ed6e74ed..cb9d177a 100644
--- a/src/routes/withdraw/+server.js
+++ b/src/routes/withdraw/+server.js
@@ -4,5 +4,5 @@ export async function POST({ request }) {
let body = await request.json();
await post('/lightning/send', body, auth(request));
- return new Response(JSON.stringify("ok"), { headers: { 'content-type': 'application/json' } });
+ return new Response(JSON.stringify('ok'), { headers: { 'content-type': 'application/json' } });
}