Skip to content

Commit 7fbb50b

Browse files
lawvspionxzh
authored andcommitted
fix: update theme logic
1 parent b764dc4 commit 7fbb50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const JsonViewer = function JsonViewer<Value> (props: JsonViewerProps<Val
137137
}
138138
const isAutoDarkTheme = useThemeDetector()
139139
const themeType = useMemo(() => props.theme === 'auto'
140-
? (isAutoDarkTheme ? 'light' : 'dark')
140+
? (isAutoDarkTheme ? 'dark' : 'light')
141141
: props.theme ?? 'light', [isAutoDarkTheme, props.theme])
142142
const theme = useMemo(() => {
143143
const backgroundColor = typeof themeType === 'object'

0 commit comments

Comments
 (0)