From d59060ab355d12a288f28b251c4a6a47eff5b376 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sat, 5 Aug 2023 13:18:21 -0700 Subject: [PATCH] feat: switch to svh --- src/lib/auth.ts | 2 +- src/lib/components/input/Button.svelte | 1 + src/lib/components/ui/StickyCard.svelte | 2 +- src/lib/components/ui/sidebar/Sidebar.svelte | 21 ++++++++++++------- .../post/[instance]/[id=integer]/+page.svelte | 4 ++-- svelte.config.js | 1 + 6 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 2d501fa1..3ff8c6c7 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -5,7 +5,7 @@ import { getClient } from '$lib/lemmy.js' import type { MyUserInfo } from 'lemmy-js-client' import { get, writable } from 'svelte/store' -const getDefaultProfile = () => ({ +const getDefaultProfile = (): Profile => ({ id: -1, instance: get(profileData)?.defaultInstance ?? get(instance), }) diff --git a/src/lib/components/input/Button.svelte b/src/lib/components/input/Button.svelte index 0a96e2b8..2ceb0b96 100644 --- a/src/lib/components/input/Button.svelte +++ b/src/lib/components/input/Button.svelte @@ -70,6 +70,7 @@ {#if href} diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index e5430fc8..1414204f 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -21,20 +21,23 @@