From 6bc8c65c81f581edf298a5196292e495f0ceb2c5 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Mon, 15 Sep 2025 16:04:43 +0530 Subject: [PATCH] Message should be inside card --- src/pages/Directory/NotesPage.jsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/pages/Directory/NotesPage.jsx b/src/pages/Directory/NotesPage.jsx index 5b609709..58790562 100644 --- a/src/pages/Directory/NotesPage.jsx +++ b/src/pages/Directory/NotesPage.jsx @@ -76,7 +76,7 @@ const NotesPage = ({ projectId, searchText, onExport }) => { if (isLoading) return ; return ( -
+
{data?.data?.length > 0 ? ( <> {data.data.map((noteItem) => ( @@ -96,12 +96,18 @@ const NotesPage = ({ projectId, searchText, onExport }) => {
) : ( -
- {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."} +

)}