aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-31 07:18:02 -0700
committerAdam Soltys <[email protected]>2022-08-31 07:18:15 -0700
commitbaa87eee81406323beec4b3f8942fe2c959f1ebe (patch)
tree11c81ee40875086e522e1bbc6203fc63d3f78b80
parent303d472e742408de52de8d406fbe94082de812b8 (diff)
downloadcoinos-ui-baa87eee81406323beec4b3f8942fe2c959f1ebe.tar.gz
coinos-ui-baa87eee81406323beec4b3f8942fe2c959f1ebe.zip
formatting
-rw-r--r--src/lib/utils.js2
-rw-r--r--src/routes/[username]/receive/+page.svelte7
-rw-r--r--src/routes/[username]/settings/_security.svelte4
-rw-r--r--src/routes/user/+server.js1
-rw-r--r--static/icons/send.svg4
5 files changed, 6 insertions, 12 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 712ce8f5..aa4e3951 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -79,7 +79,7 @@ export const success = (m) => {
toast.pop();
toast.push(m, {
theme: {
- '--toastBarBackground': '#16A34A'
+ '--toastBarBackground': '#F5F7FA'
}
});
};
diff --git a/src/routes/[username]/receive/+page.svelte b/src/routes/[username]/receive/+page.svelte
index 735a6100..05ee5758 100644
--- a/src/routes/[username]/receive/+page.svelte
+++ b/src/routes/[username]/receive/+page.svelte
@@ -178,7 +178,6 @@
{/each}
</div>
- <!-- buttons -->
<div class="space-y-3 w-full md:w-[300px] mx-auto">
<button
class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm {$invoiceAmount ===
@@ -189,12 +188,6 @@
disabled={$invoiceAmount === 0}
><Icon icon="qr" style="mr-2" /> {$t('user.receive.showQR')}</button
>
- <!--
- <button
- class="bg-primary rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm"
- disabled={true}><Icon icon="send" style="mr-2" /> Send Invoice</button
- >
- -->
</div>
</div>
{:else}
diff --git a/src/routes/[username]/settings/_security.svelte b/src/routes/[username]/settings/_security.svelte
index 78b63497..8f0dc273 100644
--- a/src/routes/[username]/settings/_security.svelte
+++ b/src/routes/[username]/settings/_security.svelte
@@ -8,7 +8,7 @@
<p class="text-secondary mb-1">
{$t('user.settings.securityPINDescription')}
</p>
- <button type="submit" class="p-3 border rounded-3xl font-bold flex justify-center items-center"
+ <button type="button" class="p-3 border rounded-3xl font-bold flex justify-center items-center"
><Icon icon="lock" style="mr-1" /> {$t('user.settings.setPIN')}</button
>
</div>
@@ -32,7 +32,7 @@
<p class="text-secondary mb-1">
{$t('user.settings.twofaDescription')}
</p>
- <button type="submit" class="p-3 border rounded-3xl font-bold flex justify-center items-center"
+ <button type="button" class="p-3 border rounded-3xl font-bold flex justify-center items-center"
><Icon icon="mobile" style="mr-1" /> {$t('user.settings.twofaSetup')}</button
>
</div>
diff --git a/src/routes/user/+server.js b/src/routes/user/+server.js
index a192b6cc..bb02ac54 100644
--- a/src/routes/user/+server.js
+++ b/src/routes/user/+server.js
@@ -2,7 +2,6 @@ import { auth, post } from '$lib/utils';
import cookie from 'cookie';
export async function PUT({ request, setHeaders }) {
- console.log(setHeaders);
let user = await request.json();
let res = await post('/user', user, auth(request));
diff --git a/static/icons/send.svg b/static/icons/send.svg
index d1398ec4..1d20f7aa 100644
--- a/static/icons/send.svg
+++ b/static/icons/send.svg
@@ -1 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M433.1 129.1l-83.9-83.9C342.3 38.32 327.1 32 316.1 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V163.9C448 152.9 441.7 137.7 433.1 129.1zM224 416c-35.34 0-64-28.66-64-64s28.66-64 64-64s64 28.66 64 64S259.3 416 224 416zM320 208C320 216.8 312.8 224 304 224h-224C71.16 224 64 216.8 64 208v-96C64 103.2 71.16 96 80 96h224C312.8 96 320 103.2 320 112V208z"/></svg>
+<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M6 12.9953L3.99392 21.9939L22 13.0061L4.00608 3.99393L6 12.9953ZM6 12.9953L14 13.0007" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>