diff --git a/PostFundManagement.PartnerUI/src/components/dashboard/DashboardPage.tsx b/PostFundManagement.PartnerUI/src/components/dashboard/DashboardPage.tsx index c885008..57163cc 100644 --- a/PostFundManagement.PartnerUI/src/components/dashboard/DashboardPage.tsx +++ b/PostFundManagement.PartnerUI/src/components/dashboard/DashboardPage.tsx @@ -61,6 +61,8 @@ import { NotificationStatus, } from '../../types'; import { formatZAR } from '../../lib/formatters'; +import { MessageViewer } from '../notifications/MessageViewer'; +import { stripMarkdown } from '../../lib/markdownUtils'; interface EnrichedPartnerProject { project: Project; @@ -1321,7 +1323,7 @@ export function DashboardPage() {
- {msg.message} + {stripMarkdown(msg.message)}
@@ -1393,7 +1395,7 @@ export function DashboardPage() { )} -{msg.message}
+{stripMarkdown(msg.message)}
@@ -2120,11 +2122,12 @@ export function DashboardPage() { MODAL 3: MESSAGE READER (Clicking an Inbox item) ===================================================================== */} {selectedNotification && ( -@@ -2134,41 +2137,47 @@ export function DashboardPage() {
- {selectedNotification.message} -
-No message content
'; + + // Format 1: Email => HTML + if (isEmail) { + if (isHtmlContent(content)) { + return content.replace(/