mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
docs: fix theme editor page (#44232)
This commit is contained in:
@@ -44,11 +44,6 @@ const CustomTheme = () => {
|
||||
const storedConfig = localStorage.getItem(ANT_DESIGN_V5_THEME_EDITOR_THEME);
|
||||
if (storedConfig) {
|
||||
const themeConfig = JSON.parse(storedConfig);
|
||||
const originThemeConfig = {
|
||||
json: themeConfig,
|
||||
text: undefined,
|
||||
};
|
||||
setThemeConfigContent(originThemeConfig);
|
||||
setTheme(themeConfig);
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user