Refactor_Directory And Project Level Permsssion #404
| @ -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> | ||||||
|   ); |   ); | ||||||
|  | |||||||
| @ -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> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user