From 8f8a68e002e600e0f32dc66c8e985021b541d018 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 18 Mar 2024 00:30:08 -0700 Subject: [PATCH] refac: unnecessary code --- src/lib/components/chat/Settings/General.svelte | 3 --- src/lib/stores/index.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index 8e6ccc508..a5b7aeb5d 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -16,8 +16,6 @@ // General let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light']; let selectedTheme = 'system'; - let actualTheme: string; - $: actualTheme = $theme; let languages = []; let lang = $i18n.language; @@ -72,7 +70,6 @@ onMount(async () => { selectedTheme = localStorage.getItem('theme') ?? 'system'; - applyTheme(selectedTheme); let settings = JSON.parse(localStorage.getItem('settings') ?? '{}'); languages = await getLanguages(); diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index cd42a51ee..c0e38a21e 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -1,5 +1,5 @@ import { APP_NAME } from '$lib/constants'; -import { writable, derived } from 'svelte/store'; +import { writable } from 'svelte/store'; // Backend export const WEBUI_NAME = writable(APP_NAME);