diff --git a/src/components/Directory/CardViewDirectory.jsx b/src/components/Directory/CardViewDirectory.jsx index a18f0f18..657f7353 100644 --- a/src/components/Directory/CardViewDirectory.jsx +++ b/src/components/Directory/CardViewDirectory.jsx @@ -3,11 +3,11 @@ import Avatar from "../common/Avatar"; import {getBucketNameById} from "./DirectoryUtils"; import {useBuckets} from "../../hooks/useDirectory"; import { getPhoneIcon } from "./DirectoryUtils"; -const CardViewDirectory = ( {contact, setSelectedContact, setIsOpenModal, setOpen_contact, setIsOpenModalNote, IsDeleted} ) => +const CardViewDirectory = ( {IsActive,contact, setSelectedContact, setIsOpenModal, setOpen_contact, setIsOpenModalNote, IsDeleted} ) => { const {buckets} = useBuckets() return ( -
+
@@ -23,7 +23,7 @@ const CardViewDirectory = ( {contact, setSelectedContact, setIsOpenModal, setOpe

{contact.name}

-
+
{ + if ( IsActive ) + { + setIsOpenModalNote(true) setOpen_contact(contact) + } }}>
{contact.contactEmails[0] && ( @@ -108,19 +118,19 @@ const CardViewDirectory = ( {contact, setSelectedContact, setIsOpenModal, setOpe -
    - {contact.bucketIds.map( ( bucketId ) => ( - <> - -
  • - -
  • -
  • - {getBucketNameById(buckets,bucketId)} -
  • - ))} - -
+
    + {contact.bucketIds.map((bucketId) => ( + +
  • + +
  • +
  • + {getBucketNameById(buckets, bucketId)} +
  • +
    + ))} +
+
);