From 9614e39e62ec943c06ab5a44201b920502eba517 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 7 Jul 2022 14:25:25 -0600 Subject: [PATCH] Rewording --- web/pages/notifications.tsx | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index 8e3188aa..a243b6f6 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -527,7 +527,7 @@ function NotificationGroupItem(props: { notification={notification} key={notification.id} justSummary={false} - hideTitle={true} + isChildOfGroup={true} /> ))} @@ -544,9 +544,9 @@ function NotificationGroupItem(props: { function NotificationItem(props: { notification: Notification justSummary?: boolean - hideTitle?: boolean + isChildOfGroup?: boolean }) { - const { notification, justSummary, hideTitle } = props + const { notification, justSummary, isChildOfGroup } = props const { sourceType, sourceUserName, @@ -631,25 +631,28 @@ function NotificationItem(props: { } >
- + {' '} + {sourceUpdateType != 'closed' && ( + + )} {getReasonForShowingNotification( notification, false, - hideTitle + isChildOfGroup )} - - {!hideTitle && } - {hideTitle && ( + {isChildOfGroup ? ( + ) : ( + )}
- {!hideTitle && ( + {!isChildOfGroup && (