diff --git a/src/courseware/course/sequence/Unit/ContentIFrame.jsx b/src/courseware/course/sequence/Unit/ContentIFrame.jsx
index 54c4d6620f..352def8bce 100644
--- a/src/courseware/course/sequence/Unit/ContentIFrame.jsx
+++ b/src/courseware/course/sequence/Unit/ContentIFrame.jsx
@@ -3,7 +3,7 @@ import React from 'react';
import { ErrorPage } from '@edx/frontend-platform/react';
import { StrictDict } from '@edx/react-unit-test-utils';
-import { ModalDialog, Modal } from '@openedx/paragon';
+import { ModalDialog } from '@openedx/paragon';
import { PluginSlot } from '@openedx/frontend-plugin-framework';
import PageLoading from '@src/generic/PageLoading';
@@ -66,21 +66,6 @@ const ContentIFrame = ({
onLoad: handleIFrameLoad,
};
- let modalContent;
- if (modalOptions.isOpen) {
- modalContent = modalOptions.body
- ?
{ modalOptions.body }
- : (
-
- );
- }
-
return (
<>
{(shouldShowContent && !hasLoaded) && (
@@ -101,28 +86,26 @@ const ContentIFrame = ({
)}
- {modalOptions.isOpen && (modalOptions.isFullscreen
- ? (
-
-
- {modalContent}
-
-
-
- ) : (
-
- )
+ {modalOptions.isOpen && (
+
+
+ {modalOptions.body
+ ? { modalOptions.body }
+ : (
+
+ )}
+
+
)}
>
);
diff --git a/src/instructor-toolbar/masquerade-widget/MasqueradeUserNameInput.jsx b/src/instructor-toolbar/masquerade-widget/MasqueradeUserNameInput.jsx
index eb29bb2559..330486c893 100644
--- a/src/instructor-toolbar/masquerade-widget/MasqueradeUserNameInput.jsx
+++ b/src/instructor-toolbar/masquerade-widget/MasqueradeUserNameInput.jsx
@@ -3,7 +3,7 @@ import React, {
} from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
-import { Input } from '@openedx/paragon';
+import { Form } from '@openedx/paragon';
import messages from './messages';
@@ -46,7 +46,7 @@ class MasqueradeUserNameInput extends Component {
...rest
} = this.props;
return (
- this.onKeyPress(event)}