aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-09-16 12:28:53 -0600
committersecondl1ght <[email protected]>2022-09-16 12:28:53 -0600
commitf05093405ed58f688cecbe4382310c234415da56 (patch)
tree21ce5a6b6e39f0bef563755b8c2c1e16f6681953 /src/routes
parent991e69b190e3a741cd027199ad1869c220ad677a (diff)
downloadcoinos-ui-f05093405ed58f688cecbe4382310c234415da56.tar.gz
coinos-ui-f05093405ed58f688cecbe4382310c234415da56.zip
format and temp disable username update until we fix breaking changes
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/[username]/+page.svelte2
-rw-r--r--src/routes/[username]/dashboard/+page.svelte13
-rw-r--r--src/routes/[username]/settings/_account.svelte5
-rw-r--r--src/routes/invoice/[id]/+page.svelte10
4 files changed, 17 insertions, 13 deletions
diff --git a/src/routes/[username]/+page.svelte b/src/routes/[username]/+page.svelte
index 5ebbd376..6544dc00 100644
--- a/src/routes/[username]/+page.svelte
+++ b/src/routes/[username]/+page.svelte
@@ -58,7 +58,7 @@
<div class="space-y-5 static xl:absolute top-[255px] left-[calc(50vw-150px)]">
<div
-on:click={() => copy(lightningAddress)}
+ on:click={() => copy(lightningAddress)}
id="qr"
class=" cursor-pointer w-[292px] md:w-[342px] h-[342px] border border-lightgrey rounded-3xl flex p-5 justify-center items-center relative"
/>
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte
index 3cd3ac67..56c8571f 100644
--- a/src/routes/[username]/dashboard/+page.svelte
+++ b/src/routes/[username]/dashboard/+page.svelte
@@ -14,7 +14,7 @@
withdrawing;
let toggle = async () => {
-payreq = ''
+ payreq = '';
withdrawing = !withdrawing;
await tick();
if (withdrawing) payreqField.focus();
@@ -73,8 +73,9 @@ payreq = ''
class="rounded-full border py-2 px-5 font-bold mt-4 block md:inline hover:bg-primary"
on:click={() => goto(`/${user.username}/receive`)}>{$t('user.dashboard.receive')}</button
>
- <button class="rounded-full border py-2 px-5 font-bold mt-5 md:mt-4 hover:bg-primary" on:click={toggle}
- >{$t('user.dashboard.withdraw')}</button
+ <button
+ class="rounded-full border py-2 px-5 font-bold mt-5 md:mt-4 hover:bg-primary"
+ on:click={toggle}>{$t('user.dashboard.withdraw')}</button
>
</div>
{:else}
@@ -84,7 +85,7 @@ payreq = ''
</button>
<div>
-<!-- found missing translation -->
+ <!-- found missing translation -->
<label for="invoice" class="font-bold mb-1 block">Lightning Invoice</label>
<input
bind:this={payreqField}
@@ -96,8 +97,8 @@ payreq = ''
/>
</div>
-<!-- TODO -->
-<!--
+ <!-- TODO -->
+ <!--
<div>
<label for="note" class="font-bold mb-1 block">{$t('user.dashboard.optionalNote')}</label>
<textarea name="note" rows={2} class="block border rounded-2xl p-3 w-full bg-primary" />
diff --git a/src/routes/[username]/settings/_account.svelte b/src/routes/[username]/settings/_account.svelte
index 573611af..8b9eeec5 100644
--- a/src/routes/[username]/settings/_account.svelte
+++ b/src/routes/[username]/settings/_account.svelte
@@ -72,9 +72,10 @@
<input type="email" name="email" bind:value={$user.email} />
</div> -->
+<!-- TODO fix breaking changes when user updates this field -->
<div>
<label for="username" class="font-bold mb-1 block">{$t('user.settings.username')}</label>
- <input type="text" name="username" bind:value={$user.username} />
+ <input disabled type="text" name="username" bind:value={$user.username} />
</div>
<div class="relative">
@@ -144,7 +145,7 @@
</div>
{/if}
<div class="ml-2 p-2">
-<!-- found missing translation -->
+ <!-- found missing translation -->
<button
type="button"
class="border rounded-2xl font-bold w-24 text-center px-0 py-2 hover:bg-primary"
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte
index 6397d4c0..3f96bf06 100644
--- a/src/routes/invoice/[id]/+page.svelte
+++ b/src/routes/invoice/[id]/+page.svelte
@@ -266,11 +266,13 @@
</div>
<div>
- <button class="border border-lightgrey rounded-md p-2 mx-2 hover:bg-primary" on:click={toggleFullscreen}
- ><Icon icon="expand" /></button
+ <button
+ class="border border-lightgrey rounded-md p-2 mx-2 hover:bg-primary"
+ on:click={toggleFullscreen}><Icon icon="expand" /></button
>
- <button class="border border-lightgrey rounded-md p-2 mx-2 hover:bg-primary" on:click={() => copy(text)}
- ><Icon icon="copy" /></button
+ <button
+ class="border border-lightgrey rounded-md p-2 mx-2 hover:bg-primary"
+ on:click={() => copy(text)}><Icon icon="copy" /></button
>
</div>