diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-06 17:42:02 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-07 19:09:36 -0500 |
| commit | 9f0ba2e243be772a7677f8250893f5da7b2acbfe (patch) | |
| tree | 3996d527e06a525a1531c095478cd3c02bbae3bb /ui/lib/components/Invites.svelte | |
| parent | b89ffe00fbb28fac3daafb1f7adc71be72b59433 (diff) | |
Factor out the elements of the `/me` page, and style them a little.
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..314782a 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> |
