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