fix(PierreDiffViewer): use currentTheme.variant for dark mode (#376)
This commit is contained in:
@@ -149,7 +149,7 @@ export const PierreDiffViewer: React.FC<PierreDiffViewerProps> = ({
|
||||
}) => {
|
||||
const themeContext = useOptionalThemeSystem();
|
||||
|
||||
const isDark = themeContext?.themeMode === 'dark';
|
||||
const isDark = themeContext?.currentTheme.metadata.variant === 'dark';
|
||||
const lightTheme = themeContext?.availableThemes.find(t => t.metadata.id === themeContext.lightThemeId) ?? getDefaultTheme(false);
|
||||
const darkTheme = themeContext?.availableThemes.find(t => t.metadata.id === themeContext.darkThemeId) ?? getDefaultTheme(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user