Skip to content

Commit

Permalink
website: fix themes all error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 29, 2022
1 parent 86c4845 commit 3023dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/pages/extensions/themes/index.tsx
Expand Up @@ -21,7 +21,7 @@ export const ThemesAllDoc = () => {
});
const [selectTheme, setSelectTheme] = useState<keyof typeof themesData>();
const theme = useTheme();
const themeCurrent = themesData[selectTheme!] ? themesData[selectTheme!] : theme;
const themeCurrent = themesData[selectTheme!] ? themesData[selectTheme!] : theme.theme;
const changeHandle = (ev: React.ChangeEvent<HTMLSelectElement>) => {
setSelectTheme(ev.target.value as keyof typeof themesData);
};
Expand Down

0 comments on commit 3023dcd

Please sign in to comment.