Rewording
This commit is contained in:
parent
bbefad108a
commit
9614e39e62
|
@ -527,7 +527,7 @@ function NotificationGroupItem(props: {
|
||||||
notification={notification}
|
notification={notification}
|
||||||
key={notification.id}
|
key={notification.id}
|
||||||
justSummary={false}
|
justSummary={false}
|
||||||
hideTitle={true}
|
isChildOfGroup={true}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
|
@ -544,9 +544,9 @@ function NotificationGroupItem(props: {
|
||||||
function NotificationItem(props: {
|
function NotificationItem(props: {
|
||||||
notification: Notification
|
notification: Notification
|
||||||
justSummary?: boolean
|
justSummary?: boolean
|
||||||
hideTitle?: boolean
|
isChildOfGroup?: boolean
|
||||||
}) {
|
}) {
|
||||||
const { notification, justSummary, hideTitle } = props
|
const { notification, justSummary, isChildOfGroup } = props
|
||||||
const {
|
const {
|
||||||
sourceType,
|
sourceType,
|
||||||
sourceUserName,
|
sourceUserName,
|
||||||
|
@ -631,25 +631,28 @@ function NotificationItem(props: {
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<UserLink
|
{' '}
|
||||||
name={sourceUserName || ''}
|
{sourceUpdateType != 'closed' && (
|
||||||
username={sourceUserUsername || ''}
|
<UserLink
|
||||||
className={'mr-1 flex-shrink-0'}
|
name={sourceUserName || ''}
|
||||||
justFirstName={true}
|
username={sourceUserUsername || ''}
|
||||||
/>
|
className={'mr-1 flex-shrink-0'}
|
||||||
|
justFirstName={true}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{getReasonForShowingNotification(
|
{getReasonForShowingNotification(
|
||||||
notification,
|
notification,
|
||||||
false,
|
false,
|
||||||
hideTitle
|
isChildOfGroup
|
||||||
)}
|
)}
|
||||||
|
{isChildOfGroup ? (
|
||||||
{!hideTitle && <NotificationLink notification={notification} />}
|
|
||||||
{hideTitle && (
|
|
||||||
<RelativeTimestamp time={notification.createdTime} />
|
<RelativeTimestamp time={notification.createdTime} />
|
||||||
|
) : (
|
||||||
|
<NotificationLink notification={notification} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!hideTitle && (
|
{!isChildOfGroup && (
|
||||||
<div className={'hidden sm:inline-block'}>
|
<div className={'hidden sm:inline-block'}>
|
||||||
<RelativeTimestamp time={notification.createdTime} />
|
<RelativeTimestamp time={notification.createdTime} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user