diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 20:02:24 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 20:02:24 -0400 |
| commit | 22ce0549e20ee397cf5953bd6b7aafc752deaa28 (patch) | |
| tree | 59e116cd0a198de04a2dbd3bbb632ec3dee6fed5 /ui/lib/components/Invites.svelte | |
| parent | 0e14a3b7e365c05992848cfbc4b8d7d9681d6d04 (diff) | |
Run prettier, make lint part of pre-commit
Diffstat (limited to 'ui/lib/components/Invites.svelte')
| -rw-r--r-- | ui/lib/components/Invites.svelte | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ui/lib/components/Invites.svelte b/ui/lib/components/Invites.svelte index df51afb..bfaf2b6 100644 --- a/ui/lib/components/Invites.svelte +++ b/ui/lib/components/Invites.svelte @@ -4,25 +4,21 @@ import Invite from '$lib/components/Invite.svelte'; let invites = writable([]); - $: $invites, console.log("invites", $invites); + $: $invites, console.log('invites', $invites); async function onSubmit() { let response = await createInvite(); if (response.status == 200) { - invites.update(val => [...val, response.data]); + invites.update((val) => [...val, response.data]); } } </script> <ul> {#each $invites as invite} - <li><Invite id={invite.id} /></li> + <li><Invite id={invite.id} /></li> {/each} </ul> <form on:submit|preventDefault={onSubmit}> - <button - class="btn variant-filled" - type="submit"> - Create Invitation - </button> + <button class="btn variant-filled" type="submit"> Create Invitation </button> </form> |
