From a87d2c9143bcbcdb4a40f36b8ff3214c22bc8784 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Wed, 28 May 2025 12:24:11 +0530 Subject: [PATCH] added bucket fdisplay field in contact profile --- .../Directory/ProfileContactDirectory.jsx | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/components/Directory/ProfileContactDirectory.jsx b/src/components/Directory/ProfileContactDirectory.jsx index 7b7a3ed4..323c9b87 100644 --- a/src/components/Directory/ProfileContactDirectory.jsx +++ b/src/components/Directory/ProfileContactDirectory.jsx @@ -6,7 +6,6 @@ import NotesDirectory from "./NotesDirectory"; const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { const { conatProfile, loading } = useContactProfile(contact?.id); - const [activeTab, setActiveTab] = useState("profile"); const [profileContact, setProfileContact] = useState(); useEffect(() => { @@ -34,9 +33,11 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { {" "} {conatProfile?.organization} + Manager -
+
+
{conatProfile?.contactEmails?.length > 0 && (
@@ -61,7 +62,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
    - {conatProfile.contactPhones.map((phone, idx) => ( + {conatProfile?.contactPhones.map((phone, idx) => (
  • {phone.phoneNumber} @@ -87,7 +88,28 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
)} -
+
+ { conatProfile?.buckets?.length > 0 && +
+ {conatProfile?.contactEmails?.length > 0 && ( +
+
+

Buckets

+
+
+
    + {conatProfile.buckets.map((bucket) => ( +
  • + { bucket.name} +
  • + ))} +
+
+
+ )} +
+ } +