mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
fix linting
This commit is contained in:
parent
2b638dffe5
commit
f8aeb138f4
@ -15,11 +15,7 @@ export const useTheme = (defaultTheme = 'default') => {
|
|||||||
: false
|
: false
|
||||||
|
|
||||||
const fallbackTheme =
|
const fallbackTheme =
|
||||||
defaultTheme && defaultTheme !== 'default'
|
defaultTheme && defaultTheme !== 'default' ? defaultTheme : prefersDark ? 'dark' : 'light'
|
||||||
? defaultTheme
|
|
||||||
: prefersDark
|
|
||||||
? 'dark'
|
|
||||||
: 'light'
|
|
||||||
|
|
||||||
const themeToApply = savedTheme ?? fallbackTheme
|
const themeToApply = savedTheme ?? fallbackTheme
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user