enable contact name click to open contact profile

This commit is contained in:
Pramod Mahajan 2025-06-02 23:38:20 +05:30
parent 901f633177
commit 8d966fc5c0
2 changed files with 7 additions and 2 deletions

View File

@ -23,7 +23,12 @@ const CardViewDirectory = ({
>
<div className="card-body px-1 py-2 pb-0">
<div className="d-flex justify-content-between">
<div className="d-flex align-items-center">
<div className={`d-flex align-items-center ${IsActive && "cursor-pointer"}`} onClick={() => {
if (IsActive) {
setIsOpenModalNote(true);
setOpen_contact(contact);
}
}}>
<Avatar
size="xs"
firstName={

View File

@ -90,7 +90,7 @@ const ListViewDirectory = ({
<td className="px-2" style={{ width: "10%" }}>
<span className="badge badge-outline-secondary">
{contact?.contactCategory?.name}
{contact?.contactCategory?.name || "Other"}
</span>
</td>