Merge pull request 'Message should be inside card' (#399) from Kartik_Bug#1080 into Refactor_Directory
Reviewed-on: #399 Merged
This commit is contained in:
commit
a963176c95
@ -76,7 +76,7 @@ const NotesPage = ({ projectId, searchText, onExport }) => {
|
|||||||
if (isLoading) return <NoteCardSkeleton />;
|
if (isLoading) return <NoteCardSkeleton />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="d-flex flex-column text-start mt-5">
|
<div className="d-flex flex-column text-start mt-3">
|
||||||
{data?.data?.length > 0 ? (
|
{data?.data?.length > 0 ? (
|
||||||
<>
|
<>
|
||||||
{data.data.map((noteItem) => (
|
{data.data.map((noteItem) => (
|
||||||
@ -96,12 +96,18 @@ const NotesPage = ({ projectId, searchText, onExport }) => {
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<div className="text-muted text-center mt-4">
|
// Card for "No notes available"
|
||||||
{debouncedSearch
|
<div
|
||||||
? `No notes found matching "${searchText}"`
|
className="card text-center d-flex align-items-center justify-content-center"
|
||||||
: Object.keys(filters).some((k) => filters[k] && filters[k].length)
|
style={{ height: "200px" }}
|
||||||
? "No notes found for the applied filters."
|
>
|
||||||
: "No notes available."}
|
<p className="text-muted mb-0">
|
||||||
|
{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."}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user