From 3e1f93d4f1c54d783d2cabea86bfedc535078067 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sun, 18 May 2025 02:16:58 +0530 Subject: [PATCH] added new props, for triggering for open modal --- src/components/Directory/ListViewDirectory.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Directory/ListViewDirectory.jsx b/src/components/Directory/ListViewDirectory.jsx index d9188fd2..441aee45 100644 --- a/src/components/Directory/ListViewDirectory.jsx +++ b/src/components/Directory/ListViewDirectory.jsx @@ -23,7 +23,7 @@ const getPhoneIcon = (type) => { } }; -const ListViewDirectory = ({ contact }) => { +const ListViewDirectory = ({ contact,setSelectedContact,setIsOpenModal }) => { return ( {`${contact.name}`} @@ -40,7 +40,6 @@ const ListViewDirectory = ({ contact }) => { - {/* Phones */}
{contact.contactPhones?.map((phone, index) => ( @@ -64,7 +63,11 @@ const ListViewDirectory = ({ contact }) => { {/* Actions */} - + + { + setSelectedContact( contact ) + setIsOpenModal(true) + }}>