mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-12 11:02:42 +00:00
Fix ESLint errors
This commit is contained in:
committed by
Scott Tolksdorf
parent
fcb0cd8ee7
commit
34741291c7
@@ -41,7 +41,7 @@ const CodeEditor = createClass({
|
|||||||
this.codeMirror.on('cursorActivity', this.handleCursorActivity);
|
this.codeMirror.on('cursorActivity', this.handleCursorActivity);
|
||||||
this.updateSize();
|
this.updateSize();
|
||||||
},
|
},
|
||||||
|
|
||||||
makeBold : function() {
|
makeBold : function() {
|
||||||
const selection = this.codeMirror.getSelection();
|
const selection = this.codeMirror.getSelection();
|
||||||
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
||||||
@@ -51,7 +51,7 @@ const CodeEditor = createClass({
|
|||||||
const selection = this.codeMirror.getSelection();
|
const selection = this.codeMirror.getSelection();
|
||||||
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillReceiveProps : function(nextProps){
|
componentWillReceiveProps : function(nextProps){
|
||||||
if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) {
|
if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) {
|
||||||
this.codeMirror.setValue(nextProps.value);
|
this.codeMirror.setValue(nextProps.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user