diff --git a/src/App.js b/src/App.js
index 3d450982..8d5862b3 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import Sidebar from './components/Sidebar';
//import Header from './components/Header';
-import Table from "./pages/Table";
+import TablePaciente from "./pages/TablePaciente";
import Inicio from './pages/Inicio';
import PatientCadastroManager from './pages/PatientCadastroManager';
@@ -34,7 +34,7 @@ function App() {
case 'doctor-form-layout':
return ;
case 'table':
- return
;
+ return ;
case 'doctor-table':
return ;
case 'details-page-paciente':
@@ -42,7 +42,7 @@ function App() {
case 'details-page-doctor':
return ;
case 'edit-page-paciente':
- return ;
+ return ;
case 'edit-page-doctor':
return ;
case 'laudo-manager':
diff --git a/src/components/doctors/DoctorList.jsx b/src/components/doctors/DoctorList.jsx
deleted file mode 100644
index 570e5987..00000000
--- a/src/components/doctors/DoctorList.jsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-
-// Este componente recebe uma função 'onAddDoctor' para avisar que o botão foi clicado
-function DoctorList({ onAddPatient }) {
- return (
-
-
-
Médicos
-
-
-
Gerencie os médicos cadastrados no sistema.
-
-
-
- );
-}
-
-export default DoctorList;
\ No newline at end of file
diff --git a/src/components/patients/PatientForm.jsx b/src/components/patients/PatientForm.jsx
index 04cf8979..6f235232 100644
--- a/src/components/patients/PatientForm.jsx
+++ b/src/components/patients/PatientForm.jsx
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
-function PatientForm({ onSave, onCancel,formData, setFormData }) {
+function PatientForm({ onSave, onCancel,formData, setFormData,setCurrentPage }) {
// Estado para controlar modal de feedback
const [showMessage, setShowMessage] = useState(false);
@@ -296,7 +296,7 @@ function PatientForm({ onSave, onCancel,formData, setFormData }) {
{message}
-
diff --git a/src/components/patients/PatientList.jsx b/src/components/patients/PatientList.jsx
deleted file mode 100644
index 1619828e..00000000
--- a/src/components/patients/PatientList.jsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-
-// Este componente recebe uma função 'onAddPatient' para avisar que o botão foi clicado
-function PatientList({ onAddPatient }) {
- return (
-
-
-
Pacientes
-
-
-
Gerencie os pacientes cadastrados no sistema.
-
- Adicionar Paciente
-
-
-
- );
-}
-
-export default PatientList;
\ No newline at end of file
diff --git a/src/pages/DoctorCadastroManager.jsx b/src/pages/DoctorCadastroManager.jsx
index 3976e53b..5c9d8021 100644
--- a/src/pages/DoctorCadastroManager.jsx
+++ b/src/pages/DoctorCadastroManager.jsx
@@ -1,12 +1,12 @@
import React, { useState } from 'react';
// Importamos os dois novos componentes que criamos
-import DoctorList from '../components/doctors/DoctorList';
+
import DoctorForm from '../components/doctors/DoctorForm';
function DoctorCadastroManager( ) {
// Este estado vai controlar qual "tela" mostrar: 'list' (lista) ou 'form' (formulário)
- const [view, setView] = useState('form');
+
var myHeaders = new Headers();
@@ -36,7 +36,7 @@ function DoctorCadastroManager( ) {
setModalMsg(`Médico "${patientData.nome}" salvo com sucesso!`);
setShowModal(true);
- setView('list');
+
};
return (
@@ -66,15 +66,13 @@ function DoctorCadastroManager( ) {