diff --git a/src/components/InfoModal/InfoModal.jsx b/src/components/InfoModal/InfoModal.jsx index 74406b3..82f9f40 100644 --- a/src/components/InfoModal/InfoModal.jsx +++ b/src/components/InfoModal/InfoModal.jsx @@ -17,7 +17,7 @@ import { UserAuth } from "../../context/AuthContext"; import DataContext from "../../context/DataContext"; import ImageContainer from "../ImageContainer/ImageContainer"; import FeedbackModal from "../FeedbackModal/FeedbackModal"; -import { LinkIcon, CheckIcon, PhoneIcon } from "@chakra-ui/icons"; +import { LinkIcon, CheckIcon, EmailIcon, PhoneIcon } from "@chakra-ui/icons"; export default function InfoModal({ setData, isOpen, onClose, onOpen, props }) { const [showEmail, setShowEmail] = useState(false); @@ -155,7 +155,7 @@ export default function InfoModal({ setData, isOpen, onClose, onOpen, props }) { onClick={handleDelete} isDisabled={props.isresolved ? true : false} > - Resolve + {currentEmail === props.email ? Resolve : View Contact} )}