diff options
| author | secondl1ght <[email protected]> | 2022-09-16 12:28:53 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-09-16 12:28:53 -0600 |
| commit | f05093405ed58f688cecbe4382310c234415da56 (patch) | |
| tree | 21ce5a6b6e39f0bef563755b8c2c1e16f6681953 | |
| parent | 991e69b190e3a741cd027199ad1869c220ad677a (diff) | |
| download | coinos-ui-f05093405ed58f688cecbe4382310c234415da56.tar.gz coinos-ui-f05093405ed58f688cecbe4382310c234415da56.zip | |
format and temp disable username update until we fix breaking changes
| -rw-r--r-- | src/components/About.svelte | 4 | ||||
| -rw-r--r-- | src/locales/en.json | 10 | ||||
| -rw-r--r-- | src/routes/[username]/+page.svelte | 2 | ||||
| -rw-r--r-- | src/routes/[username]/dashboard/+page.svelte | 13 | ||||
| -rw-r--r-- | src/routes/[username]/settings/_account.svelte | 5 | ||||
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 10 |
6 files changed, 23 insertions, 21 deletions
diff --git a/src/components/About.svelte b/src/components/About.svelte index e6f0825a..46b823b2 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -13,9 +13,7 @@ { name: 'cole', socials: [] }, { name: 'gene', - socials: [ - { type: 'twitter', url: 'https://twitter.com/cogentgene', color: 'bg-[#1D9BF0]' } - ] + socials: [{ type: 'twitter', url: 'https://twitter.com/cogentgene', color: 'bg-[#1D9BF0]' }] }, { name: 'john', diff --git a/src/locales/en.json b/src/locales/en.json index 8a3bc999..161e2c36 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -22,11 +22,11 @@ "bio": "A self-taught Web Developer, secondl1ght dove head first down the bitcoin rabbit hole and left his fiat job to focus on bitcoin development full-time. He contributes to open source projects, is a privacy advocate, and freedom lover." }, - "gene": { - "name": "Gene", - "position": "Product Designer", - "bio": "My mission is to help startup founders succeed. I create products to achieve this goal. Pixel-perfect product design. Get is shipped." - }, + "gene": { + "name": "Gene", + "position": "Product Designer", + "bio": "My mission is to help startup founders succeed. I create products to achieve this goal. Pixel-perfect product design. Get is shipped." + }, "shauna": { "name": "Shauna", "position": "Operations & Marketing", 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> |
