diff --git a/app/doctor/medicos/page.tsx b/app/doctor/medicos/page.tsx index 7fa3f0f..fbd3471 100644 --- a/app/doctor/medicos/page.tsx +++ b/app/doctor/medicos/page.tsx @@ -57,8 +57,8 @@ export default function PacientesPage() { return new Intl.DateTimeFormat('pt-BR').format(date); }; - const [currentPage, setCurrentPage] = useState(1); const [itemsPerPage, setItemsPerPage] = useState(5); + const [currentPage, setCurrentPage] = useState(1); const indexOfLastItem = currentPage * itemsPerPage; const indexOfFirstItem = indexOfLastItem - itemsPerPage; diff --git a/components/ui/patient-details-modal.tsx b/components/ui/patient-details-modal.tsx index ca7b716..fea1040 100644 --- a/components/ui/patient-details-modal.tsx +++ b/components/ui/patient-details-modal.tsx @@ -5,8 +5,8 @@ import { } from "@/components/ui/dialog"; interface PatientDetailsModalProps { - patient: any; isOpen: boolean; + patient: any; onClose: () => void; }