diff --git a/src/courseware/course/sequence/Unit/ContentIFrame.jsx b/src/courseware/course/sequence/Unit/ContentIFrame.jsx index ab2652fdcd..1e6e4b98d9 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 { Modal } from '@edx/paragon'; +import { ModalDialog, Modal } from '@edx/paragon'; import PageLoading from '../../../../generic/PageLoading'; import * as hooks from './hooks'; @@ -64,6 +64,21 @@ const ContentIFrame = ({ onLoad: handleIFrameLoad, }; + let modalContent; + if (modalOptions.isOpen) { + modalContent = modalOptions.body + ?
{ modalOptions.body }
+ : ( +