Ealanisln / ready-set

On-demand courier that specializes in delivery for all your needs. We are Food Safety, and HIPPA Certified. Our team can meet all your Bay Area delivery needs.
https://readysetllc.com
MIT License
0 stars 0 forks source link

Navbar unresponsive on Users table backend. #2

Closed Ealanisln closed 1 week ago

Ealanisln commented 1 week ago

At this view, the Navbar and breadcrumb are not working.

https://ready-set.vercel.app/admin/users

Ealanisln commented 1 week ago

Pagination Component Fix

Issue

The PaginationPrevious and PaginationNext components were receiving a disabled prop, which is not part of their type definition, causing a TypeScript error.

Solution

  1. Removed the disabled prop from PaginationPrevious and PaginationNext.
  2. Implemented conditional rendering for these components based on the current page.
  3. Used CSS classes to visually disable the buttons when necessary.

Key Changes

Result