Browse Source

docs: Auto-modify theme editing content (#43287)

pull/43297/head
Quincy Qiu 1 year ago
committed by GitHub
parent
commit
02646cdf17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .dumi/pages/theme-editor/index.tsx

4
.dumi/pages/theme-editor/index.tsx

@ -183,6 +183,10 @@ const CustomTheme = () => {
style={{ height: 'calc(100vh - 64px - 56px)' }}
onThemeChange={(newTheme) => {
setTheme(newTheme.config);
setThemeConfigContent({
json: newTheme.config,
text: undefined,
});
}}
locale={lang === 'cn' ? zhCN : enUS}
/>

Loading…
Cancel
Save