From 6cf4bc7439099cebbfff8bb1869301dde4c2b064 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 2 Jan 2024 21:17:19 -0800 Subject: buttons --- src/locales/en.json | 1 + src/routes/(app)/[username]/(profile)/+page.svelte | 111 +++++++++++---------- 2 files changed, 62 insertions(+), 50 deletions(-) (limited to 'src') diff --git a/src/locales/en.json b/src/locales/en.json index 9aaf3eca..1afa0f22 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -177,6 +177,7 @@ "this": "This", "lightningAddress": "Lightning address", "dashboard": { + "receive": "Receive", "go": "Go", "dashboard": "Dashboard", "accountBalance": "Account Balance", diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index e728a336..337e80d8 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -11,11 +11,21 @@ import { browser } from "$app/environment"; export let data; - let { messages, notes, invoices, sent, received, subject, user, rate, rates } = - data; + let { + messages, + notes, + invoices, + sent, + received, + subject, + user, + rate, + rates, + } = data; $: refresh(data); let refresh = (d) => - ({ messages, notes, invoices, sent, received, subject, user, rate, rates } = d); + ({ messages, notes, invoices, sent, received, subject, user, rate, rates } = + d); let keys = new Set(); let latest = []; @@ -67,62 +77,63 @@
- {#if user?.id === subject.id} -
- +
+ {/if} {#if invoices.length}
-- cgit v1.2.3