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" /> <hr className="my-1" />
<NotesDirectory contactId={data?.id} /> <NotesDirectory contactId={data?.id} contactPerson={data?.name} />
</div> </div>
</div> </div>
); );

View File

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