diff --git a/susconecta/app/dashboard/pacientes/page.tsx b/susconecta/app/dashboard/pacientes/page.tsx index b2ea805..bbb5d20 100644 --- a/susconecta/app/dashboard/pacientes/page.tsx +++ b/susconecta/app/dashboard/pacientes/page.tsx @@ -382,10 +382,10 @@ export default function PacientesPage() { - + handleViewDetails(patient.id)}> diff --git a/susconecta/components/forms/patient-registration-form.tsx b/susconecta/components/forms/patient-registration-form.tsx index d0a0d94..c54bf65 100644 --- a/susconecta/components/forms/patient-registration-form.tsx +++ b/susconecta/components/forms/patient-registration-form.tsx @@ -397,8 +397,8 @@ export function PatientRegistrationForm({ if (inline && onClose) { onClose() - } else if (onOpenChange) { - onOpenChange(false) + } else { + onOpenChange?.(false) } // Show success message (you might want to use a toast notification) @@ -414,8 +414,8 @@ export function PatientRegistrationForm({ const handleCancel = () => { if (inline && onClose) { onClose() - } else if (onOpenChange) { - onOpenChange(false) + } else { + onOpenChange?.(false) } } @@ -466,10 +466,10 @@ export function PatientRegistrationForm({
@@ -1047,7 +1047,7 @@ export function PatientRegistrationForm({ } return ( - + { })}> @@ -1649,6 +1649,7 @@ export function PatientRegistrationForm({ {/* Botões de Ação */}
+<<<<<<< HEAD