diff --git a/src/lib/components/channel.svelte b/src/lib/components/channel.svelte index dd9f7f0..f292f22 100644 --- a/src/lib/components/channel.svelte +++ b/src/lib/components/channel.svelte @@ -1,20 +1,18 @@ - - {#if unread} - - {:else} - - {/if} + + {channelName} diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 8f4aede..8640f49 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -1,7 +1,6 @@ import { db } from '$lib/server/db'; -import type { LayoutServerLoad } from './$types'; -export const load: LayoutServerLoad = async () => { +export async function load() { const rows = await db.getChannels(); const channels: string[] = rows ? rows.map((value) => { @@ -12,4 +11,4 @@ export const load: LayoutServerLoad = async () => { return { channels, }; -}; +}