From 7919c147eeb4f2e891afc5ee99329794c78e2805 Mon Sep 17 00:00:00 2001 From: Kartik sharma Date: Sat, 28 Jun 2025 15:52:28 +0530 Subject: [PATCH] =?UTF-8?q?"Pagination=20overlaps=20on=20'+'=20(Add)=20but?= =?UTF-8?q?ton=20in=20Directory=20=E2=80=93=20bottom=20right=20corner"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Directory/NotesCardViewDirectory.jsx | 73 ++++++++++--------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/src/components/Directory/NotesCardViewDirectory.jsx b/src/components/Directory/NotesCardViewDirectory.jsx index be207ffd..75a16b06 100644 --- a/src/components/Directory/NotesCardViewDirectory.jsx +++ b/src/components/Directory/NotesCardViewDirectory.jsx @@ -107,7 +107,7 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp return (
{/* Filter Dropdown */} -
+
{/* Notes List */} @@ -129,41 +129,46 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp {/* Pagination */} {totalPages > 1 && ( -
-
- +
+ {/* Previous Button */} + - {[...Array(totalPages)].map((_, i) => { - const page = i + 1; - return ( - - ); - })} + {/* Page Number Buttons */} + {[...Array(totalPages)].map((_, i) => { + const page = i + 1; + return ( + + ); + })} - -
+ {/* Next Button */} +
)}