develop #83

Merged
M-Gabrielly merged 426 commits from develop into main 2025-12-04 04:13:15 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit b8369dd248 - Show all commits

View File

@ -567,13 +567,14 @@ const ProfissionalPage = () => {
};
const renderPacientesSection = () => {
function PacientesSection({ handleAbrirProntuario, setActiveSection }) {
// Estados para busca de pacientes
const [buscaPaciente, setBuscaPaciente] = useState("");
const [pacientesBusca, setPacientesBusca] = useState<any[]>([]);
const [carregandoBusca, setCarregandoBusca] = useState(false);
const [erroBusca, setErroBusca] = useState<string | null>(null);
// Função para buscar pacientes
const handleBuscarPaciente = async () => {
if (!buscaPaciente.trim()) {
@ -2428,7 +2429,7 @@ function LaudoEditor() {
case 'calendario':
return renderCalendarioSection();
case 'pacientes':
return renderPacientesSection();
return <PacientesSection handleAbrirProntuario={handleAbrirProntuario} setActiveSection={setActiveSection} />;
case 'prontuario':
return renderProntuarioSection();
case 'laudos':

View File

@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.