forked from RiseUP/riseup-squad21
mudanças listagem de pacientes
This commit is contained in:
parent
96f0e33489
commit
2302197578
@ -57,8 +57,8 @@ export default function PacientesPage() {
|
|||||||
return new Intl.DateTimeFormat('pt-BR').format(date);
|
return new Intl.DateTimeFormat('pt-BR').format(date);
|
||||||
};
|
};
|
||||||
|
|
||||||
const [currentPage, setCurrentPage] = useState(1);
|
|
||||||
const [itemsPerPage, setItemsPerPage] = useState(5);
|
const [itemsPerPage, setItemsPerPage] = useState(5);
|
||||||
|
const [currentPage, setCurrentPage] = useState(1);
|
||||||
|
|
||||||
const indexOfLastItem = currentPage * itemsPerPage;
|
const indexOfLastItem = currentPage * itemsPerPage;
|
||||||
const indexOfFirstItem = indexOfLastItem - itemsPerPage;
|
const indexOfFirstItem = indexOfLastItem - itemsPerPage;
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import {
|
|||||||
} from "@/components/ui/dialog";
|
} from "@/components/ui/dialog";
|
||||||
|
|
||||||
interface PatientDetailsModalProps {
|
interface PatientDetailsModalProps {
|
||||||
patient: any;
|
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
patient: any;
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user