forked from RiseUP/riseup-squad23
Ultimas mudanças
This commit is contained in:
parent
5f2e58c1c4
commit
1c0ef1cbe5
@ -3,7 +3,7 @@ import API_KEY from "../components/utils/apiKeys";
|
||||
import { useAuth } from "../components/utils/AuthProvider";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function TableDoctor({ setPatientID }) {
|
||||
function TableDoctor() {
|
||||
const { getAuthorizationHeader, isAuthenticated } = useAuth();
|
||||
|
||||
const [medicos, setMedicos] = useState([]);
|
||||
@ -163,7 +163,7 @@ function TableDoctor({ setPatientID }) {
|
||||
<td>
|
||||
<div className="d-flex gap-2">
|
||||
{/* Ver Detalhes */}
|
||||
<Link to={`/medicos/${medico.id}`}>
|
||||
<Link to={`${medico.id}`}>
|
||||
<button
|
||||
className="btn btn-sm"
|
||||
style={{
|
||||
@ -181,7 +181,7 @@ function TableDoctor({ setPatientID }) {
|
||||
</Link>
|
||||
|
||||
{/* Editar */}
|
||||
<Link to={`/medicos/${medico.id}/edit`}>
|
||||
<Link to={`${medico.id}/edit`}>
|
||||
<button
|
||||
className="btn btn-sm"
|
||||
style={{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user