diff --git a/components/dashboard/src/components/Pagination.tsx b/components/dashboard/src/components/Pagination.tsx index 276f0828cc0cf5..4cf979e87cd2ab 100644 --- a/components/dashboard/src/components/Pagination.tsx +++ b/components/dashboard/src/components/Pagination.tsx @@ -23,11 +23,21 @@ function Pagination(props: { const prevPage = () => { if (currentPage !== 1) setCurrentPage(currentPage - 1); }; + const getClassnames = (pageNumber: string | number) => { + let classnamesString = "text-gray-500 w-8 text-center rounded-md cursor-pointer hover:bg-gray-50"; + if (pageNumber === currentPage) { + return classnamesString + " bg-gray-100 pointer-events-none"; + } + if (pageNumber === "...") { + return classnamesString + "pointer-events-none"; + } + return classnamesString; + }; return ( -