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.
1 parent 213f4ea commit 79d992aCopy full SHA for 79d992a
src/components/Editor/index.js
@@ -41,6 +41,7 @@ const CodeEditor = (props) => {
41
getLineProps,
42
getTokenProps,
43
style: _style,
44
+ theme: _theme,
45
}) => (
46
<pre
47
className={_className}
@@ -49,7 +50,10 @@ const CodeEditor = (props) => {
49
50
outline: "none",
51
padding: 10,
52
fontFamily: "inherit",
- ...(!props.className || !props.theme ? {} : _style),
53
+ ...(_theme && typeof _theme.plain === "object"
54
+ ? _theme.plain
55
+ : {}),
56
+ ..._style,
57
}}
58
ref={editorRef}
59
spellCheck="false"
0 commit comments