1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

adds destructed fontFamily from props

This commit is contained in:
Callum Booth
2019-06-10 19:21:33 +01:00
parent b15a4007ee
commit a2fb50a71c

View File

@@ -1128,10 +1128,11 @@ export default class CodeEditor extends React.Component {
const { const {
className, className,
fontSize, fontSize,
fontFamily,
width, width,
height height
} = this.props } = this.props
const fontFamily = normalizeEditorFontFamily(this.props.fontFamily) const normalizedFontFamily = normalizeEditorFontFamily(fontFamily)
return (< return (<
div className={ div className={
@@ -1140,7 +1141,7 @@ export default class CodeEditor extends React.Component {
ref='root' ref='root'
tabIndex='-1' tabIndex='-1'
style={{ style={{
fontFamily, normalizedFontFamily,
fontSize: fontSize, fontSize: fontSize,
width: width, width: width,
height: height height: height