File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11.paginationContainer {
22 display : flex;
33 justify-content : center;
4+ align-items : center;
45 padding : 1rem ;
56 margin-top : 20px ;
67 gap : 10px ;
1718 transition : background-color 0.3s ease;
1819}
1920
20- .pageButton : hover {
21+ .pageButton : hover : not ( : disabled ) {
2122 background-color : # e2e6ea ;
2223}
2324
25+ .pageButton : disabled {
26+ background-color : # e9ecef ;
27+ color : # 6c757d ;
28+ border-color : # dee2e6 ;
29+ cursor : not-allowed;
30+ opacity : 0.6 ;
31+ }
32+
2433.activeButton {
2534 background-color : # 007bff ;
2635 color : # fff ;
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ const Pagination: React.FC<PaginationProps> = ({
3232 Previous
3333 </ button >
3434
35- < span >
36- Page { currentPage } of { totalPages }
37- </ span >
35+ < span > Page { totalPages === 0 ? '0 of 0' : `${ currentPage } of ${ totalPages } ` } </ span >
3836
3937 < button
4038 className = 'pageButton'
You can’t perform that action at this time.
0 commit comments