From 735eb521d0acf6455d01f1cbb2b681f5ef1948dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Gustavo?=
<166467972+JoaoGustavo-dev@users.noreply.github.com>
Date: Thu, 9 Oct 2025 19:01:24 -0300
Subject: [PATCH] fixing-profissional-page-errors
---
susconecta/app/profissional/page.tsx | 16 ++++++++--------
susconecta/package-lock.json | 16 +---------------
2 files changed, 9 insertions(+), 23 deletions(-)
diff --git a/susconecta/app/profissional/page.tsx b/susconecta/app/profissional/page.tsx
index dffa3ac..a5a6e34 100644
--- a/susconecta/app/profissional/page.tsx
+++ b/susconecta/app/profissional/page.tsx
@@ -7,7 +7,7 @@ import ProtectedRoute from "@/components/ProtectedRoute";
import { useAuth } from "@/hooks/useAuth";
import { buscarPacientes, listarPacientes, buscarPacientePorId, type Paciente } from "@/lib/api";
import { useReports } from "@/hooks/useReports";
-import { CreateReportData, ReportFormData } from "@/types/report";
+import { CreateReportData, ReportFormData } from "@/types/report-types";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
@@ -2416,13 +2416,13 @@ Nevo melanocítico benigno. Seguimento clínico recomendado.
.replace(/\*\*(.*?)\*\*/g, '$1')
.replace(/\*(.*?)\*/g, '$1')
.replace(/__(.*?)__/g, '$1')
- .replace(/\[left\](.*?)\[\/left\]/gs, '
$1
')
- .replace(/\[center\](.*?)\[\/center\]/gs, '$1
')
- .replace(/\[right\](.*?)\[\/right\]/gs, '$1
')
- .replace(/\[justify\](.*?)\[\/justify\]/gs, '$1
')
- .replace(/\[size=(\d+)\](.*?)\[\/size\]/gs, '$2')
- .replace(/\[font=([^\]]+)\](.*?)\[\/font\]/gs, '$2')
- .replace(/\[color=([^\]]+)\](.*?)\[\/color\]/gs, '$2')
+ .replace(/\[left\]([\s\S]*?)\[\/left\]/g, '$1
')
+ .replace(/\[center\]([\s\S]*?)\[\/center\]/g, '$1
')
+ .replace(/\[right\]([\s\S]*?)\[\/right\]/g, '$1
')
+ .replace(/\[justify\]([\s\S]*?)\[\/justify\]/g, '$1
')
+ .replace(/\[size=(\d+)\]([\s\S]*?)\[\/size\]/g, '$2')
+ .replace(/\[font=([^\]]+)\]([\s\S]*?)\[\/font\]/g, '$2')
+ .replace(/\[color=([^\]]+)\]([\s\S]*?)\[\/color\]/g, '$2')
.replace(/{{sexo_paciente}}/g, pacienteSelecionado?.sexo || laudo?.paciente?.sexo || '[SEXO]')
.replace(/{{diagnostico}}/g, campos.diagnostico || '[DIAGNÓSTICO]')
.replace(/{{conclusao}}/g, campos.conclusao || '[CONCLUSÃO]')
diff --git a/susconecta/package-lock.json b/susconecta/package-lock.json
index bb4783c..a205af3 100644
--- a/susconecta/package-lock.json
+++ b/susconecta/package-lock.json
@@ -68,6 +68,7 @@
"zod": "3.25.67"
},
"devDependencies": {
+ "@eslint/eslintrc": "^3",
"@eslint/js": "^9.36.0",
"@tailwindcss/postcss": "^4.1.9",
"@types/node": "^22",
@@ -9402,21 +9403,6 @@
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
- },
- "node_modules/@next/swc-win32-ia32-msvc": {
- "version": "14.2.16",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.16.tgz",
- "integrity": "sha512-jhPl3nN0oKEshJBNDAo0etGMzv0j3q3VYorTSFqH1o3rwv1MQRdor27u1zhkgsHPNeY1jxcgyx1ZsCkDD1IHgg==",
- "cpu": [
- "ia32"
- ],
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 10"
- }
}
}
}
--
2.47.2