From 433a11da73b4a7d3acd56960cdbb68cb7ecef609 Mon Sep 17 00:00:00 2001 From: Steven Zhou Date: Tue, 19 Sep 2023 23:43:52 -0700 Subject: [PATCH 1/2] changed function names --- src/components/InfoModal/InfoModal.jsx | 6 +++--- src/components/ResultCard/ResultCard.jsx | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/InfoModal/InfoModal.jsx b/src/components/InfoModal/InfoModal.jsx index 74406b3..e93a7bc 100644 --- a/src/components/InfoModal/InfoModal.jsx +++ b/src/components/InfoModal/InfoModal.jsx @@ -19,7 +19,7 @@ import ImageContainer from "../ImageContainer/ImageContainer"; import FeedbackModal from "../FeedbackModal/FeedbackModal"; import { LinkIcon, CheckIcon, PhoneIcon } from "@chakra-ui/icons"; -export default function InfoModal({ setData, isOpen, onClose, onOpen, props }) { +export default function InfoModal({ setData, isOpen, onClose, props }) { const [showEmail, setShowEmail] = useState(false); const { onLoginModalOpen } = useContext(DataContext); const { user } = UserAuth(); @@ -33,7 +33,7 @@ export default function InfoModal({ setData, isOpen, onClose, onOpen, props }) { // } // } - async function handleDelete() { + async function handleResolve() { feedbackModalDisclosure.onOpen(); } @@ -152,7 +152,7 @@ export default function InfoModal({ setData, isOpen, onClose, onOpen, props }) { colorScheme="green" size={"lg"} gap={2} - onClick={handleDelete} + onClick={handleResolve} isDisabled={props.isresolved ? true : false} > Resolve diff --git a/src/components/ResultCard/ResultCard.jsx b/src/components/ResultCard/ResultCard.jsx index fe4e408..be775c0 100644 --- a/src/components/ResultCard/ResultCard.jsx +++ b/src/components/ResultCard/ResultCard.jsx @@ -82,7 +82,6 @@ export default function ResultCard({ props, setData, onResultsBarClose }) { {(infoModalDisclosure.isOpen || id) && ( Date: Tue, 19 Sep 2023 23:46:18 -0700 Subject: [PATCH 2/2] fixed eslint --- src/components/InfoModal/InfoModal.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/InfoModal/InfoModal.jsx b/src/components/InfoModal/InfoModal.jsx index 8a750ce..0cc52da 100644 --- a/src/components/InfoModal/InfoModal.jsx +++ b/src/components/InfoModal/InfoModal.jsx @@ -26,7 +26,7 @@ export default function InfoModal({ setData, isOpen, onClose, props }) { const navigate = useNavigate(); const feedbackModalDisclosure = useDisclosure(); const currentEmail = user?.email; - + // function viewEmail() { // if (user) { // setShowEmail(true); @@ -140,7 +140,7 @@ export default function InfoModal({ setData, isOpen, onClose, props }) { } }} > - View Contact + View Contact ) : ( )}