diff --git a/components/Editor.js b/components/Editor.js index b21e9d7..46d436b 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -293,6 +293,8 @@ class Editor extends React.Component { } } + applyPreset = ({ id: preset, ...settings }) => this.updateState({ preset, ...settings }) + format = () => formatCode(this.state.code) .then(this.updateCode)