diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/[username]/settings/+page.svelte | 6 | ||||
| -rw-r--r-- | src/routes/[username]/settings/_account.svelte | 2 | ||||
| -rw-r--r-- | src/routes/[username]/settings/_pos.svelte | 3 | ||||
| -rw-r--r-- | src/routes/[username]/settings/_security.svelte | 1 | ||||
| -rw-r--r-- | src/routes/withdraw/+server.js | 2 |
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' } }); } |
