Add member lists, use member lists to build room lists

This commit is contained in:
Jon Staab
2024-10-22 10:16:31 -07:00
parent fcc257286a
commit e6b11f619f
10 changed files with 111 additions and 36 deletions
+13 -2
View File
@@ -1,11 +1,22 @@
<script lang="ts">
import Button from "@lib/components/Button.svelte"
import ModalHeader from "@lib/components/ModalHeader.svelte"
import Profile from "@app/components/Profile.svelte"
export let title
export let subtitle = ""
export let pubkeys
</script>
<div class="row-2">
<div class="column gap-4">
<ModalHeader>
<div slot="title">{title}</div>
<div slot="info">{subtitle}</div>
</ModalHeader>
{#each pubkeys as pubkey (pubkey)}
<Profile {pubkey} />
<div class="card2 bg-alt">
<Profile {pubkey} />
</div>
{/each}
<Button class="btn btn-primary" on:click={() => history.back()}>Got it</Button>
</div>