From a2fb50a71c645e7cdb123c98d9d599f4162e9f89 Mon Sep 17 00:00:00 2001 From: Callum Booth Date: Mon, 10 Jun 2019 19:21:33 +0100 Subject: [PATCH] adds destructed fontFamily from props --- browser/components/CodeEditor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/components/CodeEditor.js b/browser/components/CodeEditor.js index 093752bb..0e6106c4 100644 --- a/browser/components/CodeEditor.js +++ b/browser/components/CodeEditor.js @@ -1128,10 +1128,11 @@ export default class CodeEditor extends React.Component { const { className, fontSize, + fontFamily, width, height } = this.props - const fontFamily = normalizeEditorFontFamily(this.props.fontFamily) + const normalizedFontFamily = normalizeEditorFontFamily(fontFamily) return (< div className={ @@ -1140,7 +1141,7 @@ export default class CodeEditor extends React.Component { ref='root' tabIndex='-1' style={{ - fontFamily, + normalizedFontFamily, fontSize: fontSize, width: width, height: height