feat(frontend): pad member page back button, add link to member page on edit page

This commit is contained in:
Sam 2023-03-14 22:31:45 +01:00
parent c4d7acc3f6
commit 149a7fba88
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
3 changed files with 13 additions and 3 deletions

View file

@ -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;
</script>
<Tooltip target={button} placement="top">{tooltip}</Tooltip>
<Button {color} {active} on:click={click} bind:inner={button}>
<Button {color} {active} {disabled} {href} on:click={click} bind:inner={button}>
<Icon name={icon} />
</Button>