Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 12, 2024
1 parent 887a368 commit dcd0d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/common/skelton/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTheme } from "@/Components/ui/theme-provider";

interface PaginationControlsProps {
currentPage: number;
setCurrentPage: (page: number) => void;
setCurrentPage: (page: any) => void;
totalPages: number;
}

Expand All @@ -19,7 +19,7 @@ export const PaginationControls: React.FC<PaginationControlsProps> = ({
return (
<div className="flex items-center justify-center gap-4 p-20">
<button
onClick={() => setCurrentPage((prevPage: any) => Math.max(prevPage - 1, 1))}
onClick={() => setCurrentPage((prevPage : any ) => Math.max(prevPage - 1, 1))}
disabled={currentPage === 1}
className="flex items-center gap-2 px-6 py-3 font-sans text-xs font-bold text-center text-gray-900 dark:text-white uppercase align-middle transition-all rounded-lg select-none hover:bg-gray-900/10 active:bg-gray-900/20 disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
>
Expand Down

0 comments on commit dcd0d60

Please sign in to comment.