added correct msg for contact person
This commit is contained in:
parent
9676d45710
commit
2ef56e7f83
@ -276,7 +276,7 @@ const ContactProfile = ({ contactId }) => {
|
||||
)}
|
||||
|
||||
<hr className="my-1" />
|
||||
<NotesDirectory contactId={data?.id} />
|
||||
<NotesDirectory contactId={data?.id} contactPerson={data?.name} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user