Merge pull request 'pramod_Bug-#391 : Click on Contact Name this Not Navigating to Details Page in Directory' (#176) from pramod_Bug-#391 into Feature_Directory

Reviewed-on: #176
This commit is contained in:
Vikas Nale 2025-06-03 11:49:41 +00:00
commit fed6711ece
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>