diff options
| author | secondl1ght <[email protected]> | 2022-08-24 19:51:31 -0400 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-08-24 19:51:31 -0400 |
| commit | f6ff5156b66efbb51ba046e37de65b466585124a (patch) | |
| tree | 6fed2233ad80097cd75a2a0340f199f2c564eef0 /src/routes | |
| parent | 8f8f85983d2f4cb734ed15b33ebc140028711733 (diff) | |
| download | coinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.tar.gz coinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.zip | |
remove duplicate elements and format
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+layout.svelte | 4 | ||||
| -rw-r--r-- | src/routes/[username]/dashboard/+page.svelte | 13 | ||||
| -rw-r--r-- | src/routes/invoice/+server.js | 2 | ||||
| -rw-r--r-- | src/routes/invoice/[id]/+page.server.js | 1 |
4 files changed, 3 insertions, 17 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5eab20bd..3309393e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -11,7 +11,7 @@ import { warning, protectedRoutes } from '$lib/utils'; import { t, locale } from '$lib/translations'; - const localeLocalStorageKey = 'sveltekit-i18n-locale'; + const localeLocalStorageKey = 'sveltekit-i18n-locale'; $: $token = data.token; @@ -21,7 +21,7 @@ $: $selectedRate = data.user && $rate * (data.rates[data.user.currency] / data.rates.USD); onMount(() => { - let localStorageLocale = localStorage.getItem(localeLocalStorageKey); + let localStorageLocale = localStorage.getItem(localeLocalStorageKey); if (localStorageLocale) locale.set(localStorageLocale); locale.subscribe((lng) => { diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte index e4f6538e..969717df 100644 --- a/src/routes/[username]/dashboard/+page.svelte +++ b/src/routes/[username]/dashboard/+page.svelte @@ -110,19 +110,6 @@ : 'opacity-100'} rounded-2xl border py-3 font-bold w-full mt-2 bg-black text-white" on:click={withdraw}>{$t('user.dashboard.send')}</button > - - <div> - <label for="note" class="font-bold mb-1 block">{$t('user.dashboard.optionalNote')}</label> - <textarea name="note" rows={2} class="block rounded-2xl p-3 w-full bg-primary" /> - </div> - - <button - disabled={!payreq} - class="{!payreq - ? 'opacity-50' - : 'opacity-100'} rounded-2xl border py-3 font-bold w-full mt-2 bg-black text-white" - on:click={withdraw}>{$t('user.dashboard.send')}</button - > </div> {/if} </div> diff --git a/src/routes/invoice/+server.js b/src/routes/invoice/+server.js index 4b961be9..3942904b 100644 --- a/src/routes/invoice/+server.js +++ b/src/routes/invoice/+server.js @@ -10,7 +10,7 @@ export async function POST({ request }) { ({ text } = await post('/lightning/invoice', { amount }, headers)); let invoice = { amount, currency, network, rate, tip, text }; - let { uuid } = await post('/invoice', { invoice, user: { username } }, headers); + let { uuid } = await post('/invoice', { invoice, user: { username } }, headers); return new Response(JSON.stringify(uuid), { headers: { 'content-type': 'application/json' } }); } diff --git a/src/routes/invoice/[id]/+page.server.js b/src/routes/invoice/[id]/+page.server.js index d46d039b..5ab0069a 100644 --- a/src/routes/invoice/[id]/+page.server.js +++ b/src/routes/invoice/[id]/+page.server.js @@ -5,4 +5,3 @@ export async function load({ params }) { let { id } = params; return { id, invoice: await get(`/invoice?uuid=${id}`) }; } - |
