Merge pull request #13115 from Pike/fix-techdocs-cli-theme

[techdocs/cli] Use light theme if it's not dark
This commit is contained in:
Emma Indal
2022-08-19 15:54:11 +02:00
committed by GitHub
@@ -55,7 +55,7 @@ export const TechDocsThemeToggle = () => {
const appThemeApi = useApi(appThemeApiRef);
const classes = useStyles();
const [theme, setTheme] = useState<Themes>(
(appThemeApi.getActiveThemeId() as Themes) || Themes.LIGHT,
appThemeApi.getActiveThemeId() === Themes.DARK ? Themes.DARK : Themes.LIGHT,
);
const themes = {