diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-03 21:43:00 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-03 21:43:00 -0500 |
| commit | f38881f3253b3a128154ffd95655859e3dc629dc (patch) | |
| tree | e0b1eea57aa8b431aa83e2efc4577c12d3cc2b29 /ui/lib/components/Invites.svelte | |
| parent | 032bd28ee996e076bc8341704f74f062a2672645 (diff) | |
Run spaces-style prettier formatting
Diffstat (limited to 'ui/lib/components/Invites.svelte')
| -rw-r--r-- | ui/lib/components/Invites.svelte | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ui/lib/components/Invites.svelte b/ui/lib/components/Invites.svelte index 337ee7e..cc14f3b 100644 --- a/ui/lib/components/Invites.svelte +++ b/ui/lib/components/Invites.svelte @@ -1,23 +1,23 @@ <script> - import { createInvite } from '$lib/apiServer'; - import Invite from '$lib/components/Invite.svelte'; + import { createInvite } from '$lib/apiServer'; + import Invite from '$lib/components/Invite.svelte'; - let invites = $state([]); + let invites = $state([]); - async function onSubmit(event) { - event.preventDefault(); - let response = await createInvite(); - if (response.status == 200) { - invites.push(response.data); - } - } + async function onSubmit(event) { + event.preventDefault(); + let response = await createInvite(); + if (response.status == 200) { + invites.push(response.data); + } + } </script> <ul> - {#each invites as invite} - <li><Invite id={invite.id} /></li> - {/each} + {#each invites as invite} + <li><Invite id={invite.id} /></li> + {/each} </ul> <form onsubmit={onSubmit}> - <button class="btn variant-filled" type="submit"> Create Invitation </button> + <button class="btn variant-filled" type="submit"> Create Invitation </button> </form> |
