diff --git a/client/modules/App/components/Overlay.jsx b/client/modules/App/components/Overlay.jsx index a2a43c71..486225f4 100644 --- a/client/modules/App/components/Overlay.jsx +++ b/client/modules/App/components/Overlay.jsx @@ -66,7 +66,6 @@ class Overlay extends React.Component {
{ this.node = node; }} diff --git a/client/modules/IDE/components/Console.jsx b/client/modules/IDE/components/Console.jsx index 14d6c6b6..380151a4 100644 --- a/client/modules/IDE/components/Console.jsx +++ b/client/modules/IDE/components/Console.jsx @@ -18,7 +18,7 @@ class Console extends React.Component { }); return ( -
+

Console

diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 2a303fce..560a137d 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -307,7 +307,7 @@ class Editor extends React.Component { />
-
{ this.codemirrorContainer = element; }} className="editor-holder" tabIndex="0"> +
{ this.codemirrorContainer = element; }} className="editor-holder" >
)); }); } else { - messages.push(
  • There are no lint messages
  • ); + messages.push(
  • There are no lint messages
  • ); } return (
    diff --git a/client/modules/IDE/components/FileNode.jsx b/client/modules/IDE/components/FileNode.jsx index 1f13e11f..b4cbc708 100644 --- a/client/modules/IDE/components/FileNode.jsx +++ b/client/modules/IDE/components/FileNode.jsx @@ -240,10 +240,6 @@ FileNode.propTypes = { }; FileNode.defaultProps = { - id: '1', - name: 'test', - fileType: 'file', - children: [], parentId: '0', isSelectedFile: false, isOptionsOpen: false, diff --git a/client/modules/IDE/components/NewFileModal.jsx b/client/modules/IDE/components/NewFileModal.jsx index 23ff681e..9a3f13dc 100644 --- a/client/modules/IDE/components/NewFileModal.jsx +++ b/client/modules/IDE/components/NewFileModal.jsx @@ -32,7 +32,7 @@ class NewFileModal extends React.Component { 'modal--reduced': !this.props.canUploadMedia }); return ( -
    { this.modal = element; }}> +
    { this.modal = element; }}>

    Add File

    diff --git a/client/modules/IDE/components/NewFolderModal.jsx b/client/modules/IDE/components/NewFolderModal.jsx index 443c1931..a9081f38 100644 --- a/client/modules/IDE/components/NewFolderModal.jsx +++ b/client/modules/IDE/components/NewFolderModal.jsx @@ -13,7 +13,7 @@ class NewFolderModal extends React.Component { render() { return ( -
    { this.newFolderModal = element; }} tabIndex="0"> +
    { this.newFolderModal = element; }} >

    Add Folder

    diff --git a/client/modules/IDE/components/Preferences.jsx b/client/modules/IDE/components/Preferences.jsx index b179ffa8..2f7b2b0b 100644 --- a/client/modules/IDE/components/Preferences.jsx +++ b/client/modules/IDE/components/Preferences.jsx @@ -23,7 +23,7 @@ class Preferences extends React.Component { handleUpdateFont(event) { let value = parseInt(event.target.value, 10); - if (isNaN(value)) { + if (Number.isNaN(value)) { value = 16; } this.props.setFontSize(value); @@ -31,7 +31,7 @@ class Preferences extends React.Component { handleUpdateIndentation(event) { let value = parseInt(event.target.value, 10); - if (isNaN(value)) { + if (Number.isNaN(value)) { value = 2; } this.props.setIndentation(value); @@ -51,7 +51,7 @@ class Preferences extends React.Component { const beep = new Audio(beepUrl); return ( -
    +
    p5.js Web Editor | Preferences @@ -116,15 +116,13 @@ class Preferences extends React.Component { className="preference__value" aria-live="polite" aria-atomic="true" - role="status" value={this.props.fontSize} onChange={this.handleUpdateFont} ref={(element) => { this.fontSizeInput = element; }} onClick={() => { this.fontSizeInput.select(); }} - > - + />