Pequenas alterações
This commit is contained in:
parent
db212835bf
commit
7ea6c89e83
@ -89,7 +89,7 @@ const Details = () => {
|
|||||||
<h3 className="mb-3 text-center">MediConnect</h3>
|
<h3 className="mb-3 text-center">MediConnect</h3>
|
||||||
<hr />
|
<hr />
|
||||||
<div className="d-flex justify-content-between align-items-center mb-3">
|
<div className="d-flex justify-content-between align-items-center mb-3">
|
||||||
<Link to={'/pacientes'}>
|
<Link to={'pacientes'}>
|
||||||
<button className="btn btn-success me-2" >
|
<button className="btn btn-success me-2" >
|
||||||
<i className="bi bi-chevron-left"></i> Voltar
|
<i className="bi bi-chevron-left"></i> Voltar
|
||||||
</button>
|
</button>
|
||||||
@ -107,7 +107,7 @@ const Details = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Link to={`/pacientes/${paciente.id}/edit`}>
|
<Link to={`edit`}>
|
||||||
<button className="btn btn-light" >
|
<button className="btn btn-light" >
|
||||||
<i className="bi bi-pencil-square"></i> Editar
|
<i className="bi bi-pencil-square"></i> Editar
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -115,7 +115,7 @@ function TablePaciente({ setCurrentPage, setPatientID }) {
|
|||||||
|
|
||||||
fetch("https://yuanqfswhberkoevtmfr.supabase.co/rest/v1/patients", requestOptions)
|
fetch("https://yuanqfswhberkoevtmfr.supabase.co/rest/v1/patients", requestOptions)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => console.log(result))
|
.then(result => setPacientes(result))
|
||||||
.catch(error => console.log('error', error));
|
.catch(error => console.log('error', error));
|
||||||
}, [isAuthenticated, getAuthorizationHeader]);
|
}, [isAuthenticated, getAuthorizationHeader]);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user