diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index f500bebeb..d6dda1d55 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -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 <> + + + + } }, redo : function(){ diff --git a/client/homebrew/editor/settingsEditor/settingsEditor.jsx b/client/homebrew/editor/settingsEditor/settingsEditor.jsx new file mode 100644 index 000000000..1d2d2d070 --- /dev/null +++ b/client/homebrew/editor/settingsEditor/settingsEditor.jsx @@ -0,0 +1,55 @@ +import "./metadataEditor.less"; +import React, { useState } from "react"; + +const SettingsEditor = () => { + const [settings, setSettings] = useState({ + blockShading: false, + activeLineShading: true, + showLineNumbers: true, + }); + + const handleFieldChange = (setting, e) => { + setSettings((prevSettings) => ({ + ...prevSettings, + [setting]: e.target.checked, + })); + }; + + return ( +
+

Editor Settings

+ + + + + + +
+ ); +}; + +export default SettingsEditor;