Fix: monoco editor dark theme issue

This commit is contained in:
Bobby Wang
2022-09-16 15:18:49 +07:00
parent 6711c227f3
commit 40a3960916

View File

@@ -101,6 +101,7 @@ export default function CodeEditor({
}}
{...props}
onValidate={onValidate_}
theme={`github-${theme.palette.mode}`}
options={{
readOnly: disabled,
fontFamily: theme.typography.fontFamilyMono,
@@ -111,7 +112,6 @@ export default function CodeEditor({
automaticLayout: true,
fixedOverflowWidgets: true,
tabSize: 2,
theme: `github-${theme.palette.mode}`,
...props.options,
}}
/>