mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
isDark is a string in Swift so we need to check for "true"
This commit is contained in:
parent
b63c9b0265
commit
2beb75d747
2 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -125,12 +125,12 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
}
|
||||
|
||||
interface UpdateColorModeEvent extends Event {
|
||||
isDark?: boolean
|
||||
isDark?: string
|
||||
}
|
||||
|
||||
const updateColorMode = (event: UpdateColorModeEvent) => {
|
||||
const isDark = event.isDark ?? false
|
||||
updateThemeLocally(isDark ? ThemeId.Dark : ThemeId.Light)
|
||||
const isDark = event.isDark ?? "false"
|
||||
updateThemeLocally(isDark === "true" ? ThemeId.Dark : ThemeId.Light)
|
||||
}
|
||||
|
||||
const share = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue