summaryrefslogtreecommitdiff
path: root/ui/lib/components/Invites.svelte
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-11-03 21:47:30 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-11-03 21:47:30 -0500
commit65381f49cc9abce98c1c63c399fdcfc8ce76c3f5 (patch)
treee0b1eea57aa8b431aa83e2efc4577c12d3cc2b29 /ui/lib/components/Invites.svelte
parent30fa0c4c1faece6b054105fe3cce5107f24a2fa2 (diff)
parentf38881f3253b3a128154ffd95655859e3dc629dc (diff)
Merge remote-tracking branch 'origin/wip/actually-configure-prettier'
Diffstat (limited to 'ui/lib/components/Invites.svelte')
-rw-r--r--ui/lib/components/Invites.svelte28
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>