We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06fd7e7 + c9e7c1b commit b8ca2c5Copy full SHA for b8ca2c5
src/admin/components/elements/CodeEditor/index.tsx
@@ -22,6 +22,7 @@ const CodeEditor: React.FC<Props> = (props) => {
22
<Editor
23
height="35vh"
24
className={classes}
25
+ theme={theme === 'dark' ? 'vs-dark' : 'vs'}
26
options={
27
{
28
detectIndentation: true,
@@ -31,7 +32,6 @@ const CodeEditor: React.FC<Props> = (props) => {
31
32
readOnly: Boolean(readOnly),
33
scrollBeyondLastLine: false,
34
tabSize: 2,
- theme: theme === 'dark' ? 'vs-dark' : 'vs',
35
wordWrap: 'on',
36
...options,
37
}
0 commit comments