forked from RiseUP/riseup-squad23
Merge finalizado
This commit is contained in:
parent
d6b3e86136
commit
709cd4e13d
@ -24,18 +24,22 @@ function TablePaciente({ setCurrentPage, setPatientID }) {
|
|||||||
const onChange = (e, id) => {
|
const onChange = (e, id) => {
|
||||||
let value = e.target.value;
|
let value = e.target.value;
|
||||||
|
|
||||||
|
if(value === 'verdetalhes'){
|
||||||
setCurrentPage('details-page-paciente')
|
setCurrentPage('details-page-paciente')
|
||||||
setPatientID(id);
|
setPatientID(id);
|
||||||
if(value === 'verdetalhes'){
|
}
|
||||||
}
|
if(value === 'editar'){
|
||||||
|
|
||||||
setCurrentPage('edit-page-paciente')
|
setCurrentPage('edit-page-paciente')
|
||||||
setPatientID(id);
|
setPatientID(id);
|
||||||
if(value === 'editar'){
|
|
||||||
}
|
|
||||||
deletePatient(id);
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (value === "excluir") {
|
||||||
|
deletePatient(id);
|
||||||
console.log(`Excluir ${id}`);
|
console.log(`Excluir ${id}`);
|
||||||
if (value === "excluir") {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user