Преглед изворни кода

typescriptize PagePresentationModal

Yuki Takei пре 3 година
родитељ
комит
6ce13b4292
1 измењених фајлова са 4 додато и 4 уклоњено
  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';
 
-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>
   );