From 6f79ec3f6015619e3d8c5b2e82d016ed7a92f917 Mon Sep 17 00:00:00 2001 From: fcarraUniSa Date: Wed, 18 Feb 2026 10:16:23 +0100 Subject: [PATCH] Update ClientPortal.tsx --- components/ClientPortal.tsx | 69 +++++++++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 7 deletions(-) diff --git a/components/ClientPortal.tsx b/components/ClientPortal.tsx index de94550..03225f4 100644 --- a/components/ClientPortal.tsx +++ b/components/ClientPortal.tsx @@ -1,4 +1,5 @@ import React, { useState, useRef, useEffect } from 'react'; +import ReactMarkdown from 'react-markdown'; import { Ticket, KBArticle, ChatMessage, TicketPriority, TicketStatus, SurveyResult, Attachment, ClientUser, TicketQueue, AppSettings } from '../types'; import { getSupportResponse } from '../services/geminiService'; import { ToastType } from './Toast'; @@ -39,6 +40,23 @@ interface ClientPortalProps { showToast: (message: string, type: ToastType) => void; } +// Configurazione stili per ReactMarkdown +const MarkdownComponents = { + h1: (props: any) =>

, + h2: (props: any) =>

, + h3: (props: any) =>

, + p: (props: any) =>

, + ul: (props: any) =>