From 7782f0c277db0b35c7d724d7b0807fa6cb0a2e35 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 12 Nov 2022 23:17:10 -0800 Subject: team mobile styles --- src/routes/(app)/[username]/dashboard/+page.svelte | 92 +++++++++++----------- src/routes/(app)/invoice/[id]/tip/+page.svelte | 4 +- src/routes/(app)/send/[...text]/+page.server.js | 2 +- src/routes/(app)/send/[...text]/+page.svelte | 2 +- src/routes/(app)/support/+page.svelte | 8 +- 5 files changed, 53 insertions(+), 55 deletions(-) (limited to 'src/routes') diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte index 1672c439..7acae7bd 100644 --- a/src/routes/(app)/[username]/dashboard/+page.svelte +++ b/src/routes/(app)/[username]/dashboard/+page.svelte @@ -91,50 +91,30 @@ -
- {#each invoices as { request_id, amount, currency, rate, user: recipient, requester, uuid }} -
-
-
- {#if user.username === requester.username} -
- -
-

Invoice from

-

{recipient.username}

-
-
- {:else} -
- -
-

You invoiced

-

{requester.username}

+
+ {#each invoices as { request_id, amount, currency, rate, user: recipient, requester, uuid }} +
+
+
+ {#if user.username === requester.username} +
+ +
+

Invoice from

+

{recipient.username}

+
-
- {/if} -
-
-
-
- {#if user.username === requester.username} - -
- -
-
- {/if} -
- -
- + {:else} +
+ +
+

You invoiced

+

{requester.username}

- -
+
+ {/if}
-
+
{f(amount * (rate / sats), currency)}
@@ -142,10 +122,34 @@
{sat(amount)}
+
+
+ {#if user.username === requester.username} + +
+
+ +
Pay
+
+
+
+ {/if} +
+ +
+ +
+
+
+
-
- {/each} -
+ {/each} +
{#each requests as { id, invoice, memo, requester: r }} diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte index 34393827..625248a0 100644 --- a/src/routes/(app)/invoice/[id]/tip/+page.svelte +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -1,5 +1,5 @@