feat: ajustes na página do profissional
This commit is contained in:
parent
398c409187
commit
efdf89e2f5
@ -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':
|
||||
|
||||
3
susconecta/next-env.d.ts
vendored
3
susconecta/next-env.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user