From 8b6b7e69380fc6a9d9af10343aad3aa1e6c13982 Mon Sep 17 00:00:00 2001 From: PleahMaCaka Date: Thu, 26 Oct 2023 14:24:23 +0900 Subject: [PATCH] style: event handlers change to arrow func --- src/lib/components/sidebar/Settings.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/components/sidebar/Settings.svelte b/src/lib/components/sidebar/Settings.svelte index 33bf3a5..d1e5236 100644 --- a/src/lib/components/sidebar/Settings.svelte +++ b/src/lib/components/sidebar/Settings.svelte @@ -8,12 +8,12 @@ $: isDark = JSON.parse(localStorage.getItem("isDark") || "false") $: isSettingsShow = ($stateStore.showSettings) - function applyDark() { + const applyDark = () => { DarkMode(isDark) localStorage.setItem("isDark", String(isDark)) } - function hideSettings() { + const hideSettings = () => { $stateStore.showSettings = false } @@ -36,8 +36,9 @@
  • Model API

    -