From 149a7fba883140129939cf6903297a580ca8a42e Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 14 Mar 2023 22:31:45 +0100 Subject: [PATCH] feat(frontend): pad member page back button, add link to member page on edit page --- frontend/src/lib/components/IconButton.svelte | 7 +++++-- frontend/src/routes/@[username]/[memberName]/+page.svelte | 2 +- frontend/src/routes/edit/member/[id]/+page.svelte | 7 +++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/IconButton.svelte b/frontend/src/lib/components/IconButton.svelte index 2c1d72e..580e63d 100644 --- a/frontend/src/lib/components/IconButton.svelte +++ b/frontend/src/lib/components/IconButton.svelte @@ -5,12 +5,15 @@ export let color: "primary" | "secondary" | "success" | "danger"; export let tooltip: string; export let active: boolean = false; - export let click: (e: MouseEvent) => void; + export let disabled: boolean = false; + + export let click: ((e: MouseEvent) => void) | undefined = undefined; + export let href: string | undefined = undefined; let button: HTMLElement; {tooltip} - diff --git a/frontend/src/routes/@[username]/[memberName]/+page.svelte b/frontend/src/routes/@[username]/[memberName]/+page.svelte index 28494e6..e139f3e 100644 --- a/frontend/src/routes/@[username]/[memberName]/+page.svelte +++ b/frontend/src/routes/@[username]/[memberName]/+page.svelte @@ -30,7 +30,7 @@
Edit profile {/if} -
+
diff --git a/frontend/src/routes/edit/member/[id]/+page.svelte b/frontend/src/routes/edit/member/[id]/+page.svelte index 498171d..4dedb84 100644 --- a/frontend/src/routes/edit/member/[id]/+page.svelte +++ b/frontend/src/routes/edit/member/[id]/+page.svelte @@ -17,6 +17,7 @@ Button, ButtonGroup, FormGroup, + Icon, Input, Modal, ModalBody, @@ -258,6 +259,12 @@

Edit member profile + {#if modified} {/if}