From c1e9a02ecffedf789e675430653b39ce96e7c232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obermu=CC=88ller?= Date: Wed, 22 Nov 2023 10:24:54 +0100 Subject: [PATCH] fix types --- frontend/src/layout/navigation-3000/themeLogic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/layout/navigation-3000/themeLogic.ts b/frontend/src/layout/navigation-3000/themeLogic.ts index 71427d092e2a3..9f2fbe5376f31 100644 --- a/frontend/src/layout/navigation-3000/themeLogic.ts +++ b/frontend/src/layout/navigation-3000/themeLogic.ts @@ -9,8 +9,8 @@ import { sceneLogic } from 'scenes/sceneLogic' export const themeLogic = kea([ path(['layout', 'navigation-3000', 'themeLogic']), actions({ - toggleTheme: (state: boolean | null) => ({ state }), - overrideTheme: (darkModePreference: boolean) => ({ darkModePreference }), + toggleTheme: true, + overrideTheme: (darkModePreference: boolean | null) => ({ darkModePreference }), syncDarkModePreference: (darkModePreference: boolean) => ({ darkModePreference }), }), reducers({