Shift CSS link to CodeEditor render

This commit is contained in:
G.Ambatte committed 2023-04-02 13:19:43 +12:00
1 parent 7dd1368c09
commit b2546d908a
2 files changed
+4 -7

No files matched your search

+4 -1
View File
@@ -396,7 +396,10 @@ const CodeEditor = createClass({
//----------------------//
render : function(){
return <div className='codeEditor' ref='editor' style={this.props.style}/>;
return <>
<link href={`../homebrew/cm-themes/${this.props.editorTheme}.css`} rel='stylesheet' />
<div className='codeEditor' ref='editor' style={this.props.style}/>
</>;
}
});