Criação das pastas para os perfis diferentes
This commit is contained in:
parent
a7d42e61d7
commit
f96f6a7598
38
src/App.js
38
src/App.js
@ -1,41 +1,11 @@
|
|||||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
||||||
|
|
||||||
import Sidebar from "./components/Sidebar";
|
import PerfilSecretaria from "./perfis/perfil_secretaria/PerfilSecretaria";
|
||||||
import Inicio from "./pages/Inicio";
|
|
||||||
import TablePaciente from "./pages/TablePaciente";
|
|
||||||
import PatientCadastroManager from "./pages/PatientCadastroManager";
|
|
||||||
import DoctorCadastroManager from "./pages/DoctorCadastroManager";
|
|
||||||
import DoctorTable from "./pages/DoctorTable";
|
|
||||||
import Agendamento from "./pages/Agendamento";
|
|
||||||
import LaudoManager from "./pages/LaudoManager";
|
|
||||||
import Details from "./pages/Details";
|
|
||||||
import EditPage from "./pages/EditPage";
|
|
||||||
import DoctorDetails from "./pages/DoctorDetails";
|
|
||||||
import DoctorEditPage from "./pages/DoctorEditPage";
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<>
|
||||||
<div id="app" className="active">
|
<PerfilSecretaria/>
|
||||||
<Sidebar />
|
</>
|
||||||
<div id="main">
|
|
||||||
<Routes>
|
|
||||||
<Route path="/" element={<Inicio />} />
|
|
||||||
<Route path="/pacientes/cadastro" element={<PatientCadastroManager />} />
|
|
||||||
<Route path="/medicos/cadastro" element={<DoctorCadastroManager />} />
|
|
||||||
<Route path="/pacientes" element={<TablePaciente />} />
|
|
||||||
<Route path="/medicos" element={<DoctorTable />} />
|
|
||||||
<Route path="/pacientes/:id" element={<Details />} />
|
|
||||||
<Route path="/pacientes/:id/edit" element={<EditPage />} />
|
|
||||||
<Route path="/medicos/:id" element={<DoctorDetails />} />
|
|
||||||
<Route path="/medicos/:id/edit" element={<DoctorEditPage />} />
|
|
||||||
<Route path="/agendamento" element={<Agendamento />} />
|
|
||||||
<Route path="/laudo" element={<LaudoManager />} />
|
|
||||||
<Route path="*" element={<h2>Página não encontrada</h2>} />
|
|
||||||
</Routes>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Router>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
42
src/perfis/perfil_secretaria/PerfilSecretaria.jsx
Normal file
42
src/perfis/perfil_secretaria/PerfilSecretaria.jsx
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||||
|
|
||||||
|
import Sidebar from "../../components/Sidebar";
|
||||||
|
import Inicio from "../../pages/Inicio";
|
||||||
|
import TablePaciente from "../../pages/TablePaciente";
|
||||||
|
import PatientCadastroManager from "../../pages/PatientCadastroManager";
|
||||||
|
import DoctorCadastroManager from "../../pages/DoctorCadastroManager";
|
||||||
|
import DoctorTable from "../../pages/DoctorTable";
|
||||||
|
import Agendamento from "../../pages/Agendamento";
|
||||||
|
import LaudoManager from "../../pages/LaudoManager";
|
||||||
|
import Details from "../../pages/Details";
|
||||||
|
import EditPage from "../../pages/EditPage";
|
||||||
|
import DoctorDetails from "../../pages/DoctorDetails";
|
||||||
|
import DoctorEditPage from "../../pages/DoctorEditPage";
|
||||||
|
|
||||||
|
function PerfilSecretaria() {
|
||||||
|
return (
|
||||||
|
<Router>
|
||||||
|
<div id="app" className="active">
|
||||||
|
<Sidebar />
|
||||||
|
<div id="main">
|
||||||
|
<Routes>
|
||||||
|
<Route path="/" element={<Inicio />} />
|
||||||
|
<Route path="/pacientes/cadastro" element={<PatientCadastroManager />} />
|
||||||
|
<Route path="/medicos/cadastro" element={<DoctorCadastroManager />} />
|
||||||
|
<Route path="/pacientes" element={<TablePaciente />} />
|
||||||
|
<Route path="/medicos" element={<DoctorTable />} />
|
||||||
|
<Route path="/pacientes/:id" element={<Details />} />
|
||||||
|
<Route path="/pacientes/:id/edit" element={<EditPage />} />
|
||||||
|
<Route path="/medicos/:id" element={<DoctorDetails />} />
|
||||||
|
<Route path="/medicos/:id/edit" element={<DoctorEditPage />} />
|
||||||
|
<Route path="/agendamento" element={<Agendamento />} />
|
||||||
|
<Route path="/laudo" element={<LaudoManager />} />
|
||||||
|
<Route path="*" element={<h2>Página não encontrada</h2>} />
|
||||||
|
</Routes>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Router>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PerfilSecretaria;
|
||||||
Loading…
x
Reference in New Issue
Block a user