diff --git a/src/pages/Directory/NotesPage.jsx b/src/pages/Directory/NotesPage.jsx index 04ac3a84..d25406ad 100644 --- a/src/pages/Directory/NotesPage.jsx +++ b/src/pages/Directory/NotesPage.jsx @@ -47,7 +47,7 @@ const NotesPage = ({ projectId, searchText }) => { if (isError) return
{error.message}
; if (isLoading) return ; return ( -
+
{data?.data?.length > 0 ? ( <> {data.data.map((noteItem) => ( @@ -67,12 +67,18 @@ const NotesPage = ({ projectId, searchText }) => {
) : ( -
- {debouncedSearch - ? `No notes found matching "${searchText}"` - : Object.keys(filters).some((k) => filters[k] && filters[k].length) - ? "No notes found for the applied filters." - : "No notes available."} + // Card for "No notes available" +
+

+ {debouncedSearch + ? `No notes found matching "${searchText}"` + : Object.keys(filters).some((k) => filters[k] && filters[k].length) + ? "No notes found for the applied filters." + : "No notes available."} +

)}