Tweaks to navigation

This commit is contained in:
Jon Staab
2024-10-23 09:45:06 -07:00
parent f0d53ebb39
commit a382facc70
21 changed files with 282 additions and 267 deletions
-6
View File
@@ -8,13 +8,11 @@
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 ChatItem from "@app/components/ChatItem.svelte"
import {chatSearch, pullConservatively} from "@app/state"
import {makeChatPath} from "@app/routes"
import {pushModal} from "@app/modal"
const startChat = () => pushModal(ChatStart)
@@ -22,7 +20,6 @@
let term = ""
$: chats = $chatSearch.searchOptions(term).filter(c => c.pubkeys.length > 1)
$: notesPath = makeChatPath([$pubkey!])
onMount(() => {
const filter = {kinds: [WRAP], "#p": [$pubkey!]}
@@ -37,9 +34,6 @@
<SecondaryNav>
<SecondaryNavSection>
<SecondaryNavItem href={notesPath}>
<Icon icon="notes-minimalistic" /> Your Notes
</SecondaryNavItem>
<SecondaryNavHeader>
Chats
<Button on:click={startChat}>