From f8aeb138f40780bbe3ca5120416515290ea63d7d Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sun, 12 Oct 2025 12:36:22 +0200 Subject: [PATCH] fix linting --- lib/src/Components/AppShell/hooks/useTheme.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/src/Components/AppShell/hooks/useTheme.tsx b/lib/src/Components/AppShell/hooks/useTheme.tsx index be24a6f5..6299caca 100644 --- a/lib/src/Components/AppShell/hooks/useTheme.tsx +++ b/lib/src/Components/AppShell/hooks/useTheme.tsx @@ -15,11 +15,7 @@ export const useTheme = (defaultTheme = 'default') => { : false const fallbackTheme = - defaultTheme && defaultTheme !== 'default' - ? defaultTheme - : prefersDark - ? 'dark' - : 'light' + defaultTheme && defaultTheme !== 'default' ? defaultTheme : prefersDark ? 'dark' : 'light' const themeToApply = savedTheme ?? fallbackTheme