1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +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 {
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