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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user