Fix more stuff, particularly event handlers

This commit is contained in:
Jon Staab
2025-02-03 17:21:46 -08:00
parent 8d3433b167
commit 24045a7e2a
150 changed files with 424 additions and 392 deletions
+3 -3
View File
@@ -19,7 +19,7 @@
children?: import("svelte").Snippet
}
let {children}: Props = $props()
const {children}: Props = $props()
const startChat = () => pushModal(ChatStart)
@@ -30,14 +30,14 @@
let term = $state("")
let chats = $derived($chatSearch.searchOptions(term))
const chats = $derived($chatSearch.searchOptions(term))
</script>
<SecondaryNav>
<SecondaryNavSection>
<SecondaryNavHeader>
Chats
<Button on:click={startChat}>
<Button onclick={startChat}>
<Icon icon="add-circle" />
</Button>
</SecondaryNavHeader>
+4 -4
View File
@@ -17,7 +17,7 @@
const openMenu = () => pushModal(ChatMenuMobile)
let chats = $derived($chatSearch.searchOptions(term))
const chats = $derived($chatSearch.searchOptions(term))
onDestroy(() => {
setChecked($page.url.pathname)
@@ -31,7 +31,7 @@
No conversation selected.
</p>
<p>
Click on a conversation in the sidebar, or <Button class="link" on:click={startChat}
Click on a conversation in the sidebar, or <Button class="link" onclick={startChat}
>start a new one</Button
>.
</p>
@@ -49,7 +49,7 @@
type="text"
placeholder="Search for conversations..." />
</label>
<Button class="btn btn-primary" on:click={openMenu}>
<Button class="btn btn-primary" onclick={openMenu}>
<Icon icon="menu-dots" />
</Button>
</div>
@@ -61,7 +61,7 @@
{:else}
<div class="py-20 max-w-sm col-4 items-center m-auto text-center">
<p>No chats found! Try starting one up.</p>
<Button class="btn btn-primary" on:click={startChat}>
<Button class="btn btn-primary" onclick={startChat}>
<Icon icon="add-circle" />
Start a Chat
</Button>