diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-08 21:43:59 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-08 21:43:59 -0500 |
| commit | cae917ee04c1b421107108d809f545cbf414cfae (patch) | |
| tree | 0fe087c00b2caad7d316ee28fc9cf24eff7de836 /ui/lib/components/Invites.svelte | |
| parent | f31b4d8188ac7e38b6c42380649691c0e8e1e097 (diff) | |
| parent | a417c62edd4d3c07ba37b01835e89ed650489e09 (diff) | |
Merge branch 'main' into wip/pwa
Diffstat (limited to 'ui/lib/components/Invites.svelte')
| -rw-r--r-- | ui/lib/components/Invites.svelte | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/lib/components/Invites.svelte b/ui/lib/components/Invites.svelte index cc14f3b..493bf1c 100644 --- a/ui/lib/components/Invites.svelte +++ b/ui/lib/components/Invites.svelte @@ -4,7 +4,7 @@ let invites = $state([]); - async function onSubmit(event) { + async function onsubmit(event) { event.preventDefault(); let response = await createInvite(); if (response.status == 200) { @@ -13,11 +13,12 @@ } </script> -<ul> +<form {onsubmit}> + <button class="btn bg-primary-500" type="submit">create invitation</button> +</form> + +<ul class="mt-4"> {#each invites as invite} - <li><Invite id={invite.id} /></li> + <li class="my-1"><Invite id={invite.id} /></li> {/each} </ul> -<form onsubmit={onSubmit}> - <button class="btn variant-filled" type="submit"> Create Invitation </button> -</form> |
