added correct msg for contact person

This commit is contained in:
pramod mahajan 2025-09-13 16:10:17 +05:30
parent 9676d45710
commit 2ef56e7f83
2 changed files with 4 additions and 4 deletions

View File

@ -276,7 +276,7 @@ const ContactProfile = ({ contactId }) => {
)}
<hr className="my-1" />
<NotesDirectory contactId={data?.id} />
<NotesDirectory contactId={data?.id} contactPerson={data?.name} />
</div>
</div>
);

View File

@ -17,7 +17,7 @@ const schema = z.object({
note: z.string().min(1, { message: "Note is required" }),
});
const NotesDirectory = ({ contactId }) => {
const NotesDirectory = ({ contactId,contactPerson }) => {
const [isActive, setIsActive] = useState(true);
const [showEditor, setShowEditor] = useState(false);
@ -169,8 +169,8 @@ const NotesDirectory = ({ contactId }) => {
: !isLoading &&
!showEditor && (
<div className="text-center mt-5">
Be the first to share your insights! Aadnya Construction
currently has no notes.
{`Be the first to share your insights! ${contactPerson}
currently has no notes.`}
</div>
)}
</div>