From 746bddfd3aabfcd9f9ee5bc6815afe3a97f59dc9 Mon Sep 17 00:00:00 2001 From: celine Date: Thu, 4 Dec 2025 19:22:03 -0500 Subject: [PATCH] added descriptions to the mention notifcation --- .../notifications/MentionNotification.tsx | 16 +--------------- app/(home-pages)/notifications/Notification.tsx | 4 ++-- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/app/(home-pages)/notifications/MentionNotification.tsx b/app/(home-pages)/notifications/MentionNotification.tsx index 0d3f5b8b..917b2cdf 100644 --- a/app/(home-pages)/notifications/MentionNotification.tsx +++ b/app/(home-pages)/notifications/MentionNotification.tsx @@ -60,21 +60,7 @@ export const MentionNotification = (props: HydratedMentionNotification) => { actionText={actionText} content={ -
- ... this should be some characters in front of{" "} - - {mentionedItemName ? mentionedItemName : "@handleplaceholder"} - {" "} - and some at the end... -
+ {docRecord.description && docRecord.description}
} /> diff --git a/app/(home-pages)/notifications/Notification.tsx b/app/(home-pages)/notifications/Notification.tsx index 197c6131..ea85bfff 100644 --- a/app/(home-pages)/notifications/Notification.tsx +++ b/app/(home-pages)/notifications/Notification.tsx @@ -72,10 +72,10 @@ export const ContentLayout = (props: {
{props.postTitle}
- {props.children} + {props.children &&
{props.children}
} {props.pubRecord && ( <> -
+