feat(frontend): add links and add/delete names/pronouns to edit profile page

This commit is contained in:
Sam 2023-03-13 15:36:41 +01:00
parent 57ed81add3
commit 10adeec841
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 167 additions and 57 deletions

View file

@ -0,0 +1,16 @@
<script lang="ts">
import { Button, Icon, Tooltip } from "sveltestrap";
export let icon: string;
export let color: "primary" | "secondary" | "success" | "danger";
export let tooltip: string;
export let active: boolean = false;
export let click: (e: MouseEvent) => void;
let button: HTMLElement;
</script>
<Tooltip target={button} placement="top">{tooltip}</Tooltip>
<Button {color} {active} on:click={click} bind:inner={button}>
<Icon name={icon} />
</Button>