Skip to content

Commit abcba37

Browse files
committed
added prev/next buttons
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
1 parent 78ca9bf commit abcba37

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/sections/Resources/Resources-grid/paginate.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ const Pagination = ({ postsPerPage, totalPosts, paginate, currentPage }) => {
88
return (
99
<ResourcePageWrapper>
1010
<div className="btn-container">
11-
<Button
12-
$secondary
13-
onClick={() => paginate(currentPage - 1)}
11+
<Button
12+
$secondary
13+
onClick={() => paginate(currentPage - 1)}
1414
className="nav-btn"
1515
disabled={currentPage === 1}
1616
>
1717
&larr; Previous
1818
</Button>
1919

20-
<Button
21-
$primary
22-
onClick={() => paginate(currentPage + 1)}
20+
<Button
21+
$primary
22+
onClick={() => paginate(currentPage + 1)}
2323
className="nav-btn"
2424
disabled={currentPage === totalPages}
2525
>

0 commit comments

Comments
 (0)