From 796e8f8b33f4fdabbd49dd50ed7ce61f65181590 Mon Sep 17 00:00:00 2001 From: raboid Date: Wed, 17 Apr 2019 12:54:56 -0400 Subject: [PATCH] add applyPreset back --- components/Editor.js | 2 ++ 1 file changed, 2 insertions(+) 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)