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 { useAuth } from "../components/utils/AuthProvider";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
function TableDoctor({ setPatientID }) {
|
function TableDoctor() {
|
||||||
const { getAuthorizationHeader, isAuthenticated } = useAuth();
|
const { getAuthorizationHeader, isAuthenticated } = useAuth();
|
||||||
|
|
||||||
const [medicos, setMedicos] = useState([]);
|
const [medicos, setMedicos] = useState([]);
|
||||||
@ -163,7 +163,7 @@ function TableDoctor({ setPatientID }) {
|
|||||||
<td>
|
<td>
|
||||||
<div className="d-flex gap-2">
|
<div className="d-flex gap-2">
|
||||||
{/* Ver Detalhes */}
|
{/* Ver Detalhes */}
|
||||||
<Link to={`/medicos/${medico.id}`}>
|
<Link to={`${medico.id}`}>
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm"
|
className="btn btn-sm"
|
||||||
style={{
|
style={{
|
||||||
@ -181,7 +181,7 @@ function TableDoctor({ setPatientID }) {
|
|||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{/* Editar */}
|
{/* Editar */}
|
||||||
<Link to={`/medicos/${medico.id}/edit`}>
|
<Link to={`${medico.id}/edit`}>
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm"
|
className="btn btn-sm"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user