pagination
This commit is contained in:
@@ -79,7 +79,7 @@ const Pagination: React.FC<PaginationProps> = ({
|
|||||||
typeof page === "number" ? (
|
typeof page === "number" ? (
|
||||||
<button
|
<button
|
||||||
key={index}
|
key={index}
|
||||||
className={`size-8 rounded-md ${currentPage === page
|
className={`size-8 cursor-pointer rounded-md ${currentPage === page
|
||||||
? "bg-primary text-white"
|
? "bg-primary text-white"
|
||||||
: "text-primary bg-[#EAECF5] hover:bg-gray-200"
|
: "text-primary bg-[#EAECF5] hover:bg-gray-200"
|
||||||
}`}
|
}`}
|
||||||
@@ -98,7 +98,7 @@ const Pagination: React.FC<PaginationProps> = ({
|
|||||||
|
|
||||||
{/* Next button */}
|
{/* Next button */}
|
||||||
<button
|
<button
|
||||||
className={`size-8 rounded-md flex items-center justify-center ${currentPage === totalPages
|
className={`size-8 cursor-pointer rounded-md flex items-center justify-center ${currentPage === totalPages
|
||||||
? "text-gray-400 cursor-not-allowed bg-gray-100"
|
? "text-gray-400 cursor-not-allowed bg-gray-100"
|
||||||
: "text-primary bg-[#EAECF5] hover:bg-gray-200"
|
: "text-primary bg-[#EAECF5] hover:bg-gray-200"
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user