Closed Ealanisln closed 1 week ago
The PaginationPrevious
and PaginationNext
components were receiving a disabled
prop, which is not part of their type definition, causing a TypeScript error.
disabled
prop from PaginationPrevious
and PaginationNext
.<PaginationPrevious
onClick={() => onPageChange(Math.max(1, currentPage - 1))}
disabled={currentPage === 1}
/>
{currentPage > 1 ? (
<PaginationItem>
<PaginationPrevious onClick={() => onPageChange(currentPage - 1)} />
</PaginationItem>
) : (
<PaginationItem>
<PaginationPrevious className="pointer-events-none opacity-50" />
</PaginationItem>
)}
At this view, the Navbar and breadcrumb are not working.
https://ready-set.vercel.app/admin/users