Browse Source

typescriptize PagePresentationModal

Yuki Takei 3 years ago
parent
commit
6ce13b4292
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/app/src/components/PagePresentationModal.tsx

+ 4 - 4
packages/app/src/components/PagePresentationModal.jsx → packages/app/src/components/PagePresentationModal.tsx

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