From efdf89e2f518d1c2dd5f08f2c7708705881fdd35 Mon Sep 17 00:00:00 2001 From: Jonas Francisco Date: Thu, 2 Oct 2025 11:21:46 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20ajustes=20na=20p=C3=A1gina=20do=20profi?= =?UTF-8?q?ssional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- susconecta/app/profissional/page.tsx | 13 +++++++------ susconecta/next-env.d.ts | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/susconecta/app/profissional/page.tsx b/susconecta/app/profissional/page.tsx index cd88f48..d2c6ab0 100644 --- a/susconecta/app/profissional/page.tsx +++ b/susconecta/app/profissional/page.tsx @@ -567,12 +567,13 @@ const ProfissionalPage = () => { }; - const renderPacientesSection = () => { + function PacientesSection({ handleAbrirProntuario, setActiveSection }) { // Estados para busca de pacientes - const [buscaPaciente, setBuscaPaciente] = useState(""); - const [pacientesBusca, setPacientesBusca] = useState([]); - const [carregandoBusca, setCarregandoBusca] = useState(false); - const [erroBusca, setErroBusca] = useState(null); + const [buscaPaciente, setBuscaPaciente] = useState(""); + const [pacientesBusca, setPacientesBusca] = useState([]); + const [carregandoBusca, setCarregandoBusca] = useState(false); + const [erroBusca, setErroBusca] = useState(null); + // Função para buscar pacientes const handleBuscarPaciente = async () => { @@ -2428,7 +2429,7 @@ function LaudoEditor() { case 'calendario': return renderCalendarioSection(); case 'pacientes': - return renderPacientesSection(); + return ; case 'prontuario': return renderProntuarioSection(); case 'laudos': diff --git a/susconecta/next-env.d.ts b/susconecta/next-env.d.ts index 830fb59..40c3d68 100644 --- a/susconecta/next-env.d.ts +++ b/susconecta/next-env.d.ts @@ -1,6 +1,5 @@ /// /// -/// // 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.