|
|
@@ -8,20 +8,20 @@ import { usePagePresentationModal } from '~/stores/modal';
|
|
|
|
|
|
import styles from './PagePresentationModal.module.scss';
|
|
|
|
|
|
-const PagePresentationModal = () => {
|
|
|
+const PagePresentationModal = (): JSX.Element => {
|
|
|
|
|
|
- const { data: presentationData, close: closePresentationModal } = usePagePresentationModal();
|
|
|
+ const { data, close: closePresentationModal } = usePagePresentationModal();
|
|
|
|
|
|
return (
|
|
|
<Modal
|
|
|
- isOpen={presentationData.isOpened}
|
|
|
+ isOpen={data?.isOpened}
|
|
|
toggle={closePresentationModal}
|
|
|
data-testid="page-presentation-modal"
|
|
|
className={`grw-presentation-modal ${styles['grw-presentation-modal']} grw-body-only-modal-expanded`}
|
|
|
unmountOnClose={false}
|
|
|
>
|
|
|
<ModalBody className="modal-body">
|
|
|
- <iframe src={presentationData.href} />
|
|
|
+ (TBD)
|
|
|
</ModalBody>
|
|
|
</Modal>
|
|
|
);
|