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();
}}
- >
-
+ />