mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-22 20:42:58 +00:00
UI Base
This commit is contained in:
@@ -8,6 +8,7 @@ import dedent from 'dedent';
|
||||
import CodeEditor from '@components/codeEditor/codeEditor.jsx';
|
||||
import SnippetBar from './snippetbar/snippetbar.jsx';
|
||||
import MetadataEditor from './metadataEditor/metadataEditor.jsx';
|
||||
import SettingsEditor from './settingsEditor/settingsEditor.jsx';
|
||||
|
||||
const EDITOR_THEME_KEY = 'HB_editor_theme';
|
||||
|
||||
@@ -297,6 +298,14 @@ const Editor = createReactClass({
|
||||
style={{ height: `calc(100% - 25px)` }}/>
|
||||
</>;
|
||||
}
|
||||
if(this.isSettings()){
|
||||
return <>
|
||||
<CodeEditor key='codeEditor'
|
||||
view={this.state.view}
|
||||
style={{ display: 'none' }}/>
|
||||
<SettingsEditor />
|
||||
</>
|
||||
}
|
||||
},
|
||||
|
||||
redo : function(){
|
||||
|
||||
Reference in New Issue
Block a user