pagination

This commit is contained in:
hamid zarghami
2025-05-17 11:36:55 +03:30
parent d54a206556
commit 1184668f11
+2 -2
View File
@@ -79,7 +79,7 @@ const Pagination: React.FC<PaginationProps> = ({
typeof page === "number" ? (
<button
key={index}
className={`size-8 rounded-md ${currentPage === page
className={`size-8 cursor-pointer rounded-md ${currentPage === page
? "bg-primary text-white"
: "text-primary bg-[#EAECF5] hover:bg-gray-200"
}`}
@@ -98,7 +98,7 @@ const Pagination: React.FC<PaginationProps> = ({
{/* Next 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-primary bg-[#EAECF5] hover:bg-gray-200"
}`}