Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 5, 2018
1 parent a6aeba5 commit 6ab90a7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions demo/src/codemirror.js
@@ -1,4 +1,5 @@
const React = require('react')
const PropTypes = require('prop-types')
const CodeMirror = window.CodeMirror

// adapted from:
Expand Down Expand Up @@ -75,15 +76,20 @@ class CodeMirrorEditor extends React.Component {
readOnly: this.props.readOnly,
defaultValue: this.props.defaultValue,
onChange: this.props.onChange,
style: this.props.textAreaStyle,
className: this.props.textAreaClassName || this.props.textAreaClass
className: this.props.textAreaClassName
})

return React.createElement('div', {
style: this.props.style,
className: this.props.className
}, editor);
return React.createElement('div', null, editor);
}
}

CodeMirrorEditor.propTypes = {
readOnly: PropTypes.bool,
defaultValue: PropTypes.string,
textAreaClassName: PropTypes.string,
onChange: PropTypes.func,
forceTextArea: PropTypes.bool,
value: PropTypes.string
}

module.exports = CodeMirrorEditor

0 comments on commit 6ab90a7

Please sign in to comment.