Add chat start dialog

This commit is contained in:
Jon Staab
2024-10-03 15:28:06 -07:00
parent d956e5ac4a
commit 749185190b
8 changed files with 148 additions and 74 deletions
+7 -2
View File
@@ -2,11 +2,16 @@
import {fly} from "@lib/transition"
import Icon from "@lib/components/Icon.svelte"
import Page from "@lib/components/Page.svelte"
import Button from "@lib/components/Button.svelte"
import SecondaryNav from "@lib/components/SecondaryNav.svelte"
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
import SecondaryNavHeader from "@lib/components/SecondaryNavHeader.svelte"
import SecondaryNavSection from "@lib/components/SecondaryNavSection.svelte"
import ChatStart from "@app/components/ChatStart.svelte"
import {chats} from '@app/state'
import {pushModal} from '@app/modal'
const startChat = () => pushModal(ChatStart)
</script>
<SecondaryNav>
@@ -29,9 +34,9 @@
<div in:fly={{delay: 150}}>
<SecondaryNavHeader>
Chats
<div class="cursor-pointer">
<Button on:click={startChat}>
<Icon icon="add-circle" />
</div>
</Button>
</SecondaryNavHeader>
</div>
{#each $chats as {id, pubkeys}, i (id)}