@@ -29,18 +29,24 @@ function Pagination(props: PaginationProps) {
29
29
} ;
30
30
const getClassnames = ( pageNumber : string | number ) => {
31
31
if ( pageNumber === currentPage ) {
32
- return "text-gray-500 w-8 text -center rounded-md hover:bg-gray-50 bg-gray-100 disabled pointer-events-none" ;
32
+ return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items -center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 bg-gray-100 disabled pointer-events-none" ;
33
33
}
34
34
if ( pageNumber === "..." ) {
35
- return "text-gray-500 w-8 text -center rounded-md hover:bg-gray-50 disabled pointer-events-none" ;
35
+ return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items -center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 disabled pointer-events-none" ;
36
36
}
37
- return "text-gray-500 w-8 text -center rounded-md hover:bg-gray-50 cursor-pointer" ;
37
+ return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items -center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer" ;
38
38
} ;
39
39
40
40
return (
41
41
< nav className = "mt-16 mb-16" >
42
- < ul className = "flex justify-center space-x-4" >
43
- < li className = { `text-gray-400 ${ currentPage === 1 ? "disabled" : "cursor-pointer text-gray-500" } ` } >
42
+ < ul className = "flex justify-center items-center space-x-4" >
43
+ < li
44
+ className = { `font-bold text-gray-300 ${
45
+ currentPage === 1
46
+ ? "disabled dark:text-gray-500"
47
+ : "cursor-pointer dark:text-gray-400 text-gray-500"
48
+ } `}
49
+ >
44
50
< span onClick = { prevPage } >
45
51
< Arrow direction = { "left" } />
46
52
Previous
@@ -57,8 +63,10 @@ function Pagination(props: PaginationProps) {
57
63
) ;
58
64
} ) }
59
65
< li
60
- className = { `text-gray-400 ${
61
- currentPage === totalNumberOfPages ? "disabled" : "cursor-pointer text-gray-500"
66
+ className = { `font-bold text-gray-300 ${
67
+ currentPage === totalNumberOfPages
68
+ ? "disabled dark:text-gray-500"
69
+ : "cursor-pointer dark:text-gray-400 text-gray-500"
62
70
} `}
63
71
>
64
72
< span onClick = { nextPage } >
0 commit comments