Selaa lähdekoodia

change var name for delete comment modal

yohei0125 3 vuotta sitten
vanhempi
sitoutus
54c9705c75

+ 6 - 6
packages/app/src/components/PageComment/DeleteCommentModal.tsx

@@ -25,7 +25,7 @@ export const DeleteCommentModal = (props: DeleteCommentModalProps): JSX.Element
     isShown, comment, errorMessage, cancelToDelete, confirmToDelete,
     isShown, comment, errorMessage, cancelToDelete, confirmToDelete,
   } = props;
   } = props;
 
 
-  const HeaderContent = useMemo(() => {
+  const headerContent = useMemo(() => {
     if (comment == null || isShown === false) {
     if (comment == null || isShown === false) {
       return <></>;
       return <></>;
     }
     }
@@ -37,7 +37,7 @@ export const DeleteCommentModal = (props: DeleteCommentModalProps): JSX.Element
     );
     );
   }, [comment, isShown]);
   }, [comment, isShown]);
 
 
-  const BodyContent = useMemo(() => {
+  const bodyContent = useMemo(() => {
     if (comment == null || isShown === false) {
     if (comment == null || isShown === false) {
       return <></>;
       return <></>;
     }
     }
@@ -61,7 +61,7 @@ export const DeleteCommentModal = (props: DeleteCommentModalProps): JSX.Element
     );
     );
   }, [comment, isShown]);
   }, [comment, isShown]);
 
 
-  const FooterContent = useMemo(() => {
+  const footerContent = useMemo(() => {
     if (comment == null || isShown === false) {
     if (comment == null || isShown === false) {
       return <></>;
       return <></>;
     }
     }
@@ -80,13 +80,13 @@ export const DeleteCommentModal = (props: DeleteCommentModalProps): JSX.Element
   return (
   return (
     <Modal isOpen={isShown} toggle={cancelToDelete} className={`${styles['page-comment-delete-modal']}`}>
     <Modal isOpen={isShown} toggle={cancelToDelete} className={`${styles['page-comment-delete-modal']}`}>
       <ModalHeader tag="h4" toggle={cancelToDelete} className="bg-danger text-light">
       <ModalHeader tag="h4" toggle={cancelToDelete} className="bg-danger text-light">
-        {HeaderContent}
+        {headerContent}
       </ModalHeader>
       </ModalHeader>
       <ModalBody>
       <ModalBody>
-        {BodyContent}
+        {bodyContent}
       </ModalBody>
       </ModalBody>
       <ModalFooter>
       <ModalFooter>
-        {FooterContent}
+        {footerContent}
       </ModalFooter>
       </ModalFooter>
     </Modal>
     </Modal>
   );
   );