diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index 1aff392709..143eeb2e9b 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -566,16 +566,6 @@ class Nav extends React.PureComponent { } @@ -194,7 +194,7 @@ class AssetList extends React.Component { - {assetList.map(asset => )} + {assetList.map(asset => )} } diff --git a/client/modules/IDE/components/EditableInput.jsx b/client/modules/IDE/components/EditableInput.jsx index 17e777f49c..d71c11919d 100644 --- a/client/modules/IDE/components/EditableInput.jsx +++ b/client/modules/IDE/components/EditableInput.jsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { withTranslation } from 'react-i18next'; +import { useTranslation } from 'react-i18next'; import i18next from 'i18next'; import EditIcon from '../../../images/pencil.svg'; @@ -22,7 +22,7 @@ function EditableInput({ isEditing ? 'is-editing' : 'is-not-editing' } editable-input--${hasValue ? 'has-value' : 'has-placeholder'}`; const inputRef = React.createRef(); - + const { t } = useTranslation(); React.useEffect(() => { if (isEditing) { inputRef.current.focus(); @@ -60,7 +60,7 @@ function EditableInput({