diff --git a/src/components/Directory/NotesDirectory.jsx b/src/components/Directory/NotesDirectory.jsx index c92713c5..ba4c1b31 100644 --- a/src/components/Directory/NotesDirectory.jsx +++ b/src/components/Directory/NotesDirectory.jsx @@ -83,27 +83,19 @@ const NotesDirectory = ({ isLoading, contactProfile, setProfileContact }) => { return (
-
0 - ? "d-flex justify-content-between" - : "d-flex justify-content-end" - }`} - > - {contactProfile?.notes.length > 0 && ( -

Notes :

- )} - setAddNote(!addNote)} +
+

Notes :

+ setAddNote( !addNote )} > - - {addNote ? "" : "Add Note"} - {" "} - {" "} -
+ {/* */} + {addNote ? "close" : "Add Note"} +
{addNote && (
@@ -119,10 +111,7 @@ const NotesDirectory = ({ isLoading, contactProfile, setProfileContact }) => { )}
)} -
+
{isLoading && (
{" "} @@ -139,7 +128,8 @@ const NotesDirectory = ({ isLoading, contactProfile, setProfileContact }) => { setProfileContact={setProfileContact} key={noteItem.id} /> - ))} + ) )} +

{!isLoading && contactProfile?.notes.length == 0 && !addNote && (

No Notes Found

) }

);