mirror of https://github.com/tootsuite/mastodon
Change private mention icon for consistency in grouped notifications (#31223)
parent
520ff04248
commit
288961bbb9
|
@ -1,5 +1,6 @@
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
import AlternateEmailIcon from '@/material-icons/400-24px/alternate_email.svg?react';
|
||||||
import ReplyIcon from '@/material-icons/400-24px/reply-fill.svg?react';
|
import ReplyIcon from '@/material-icons/400-24px/reply-fill.svg?react';
|
||||||
import type { StatusVisibility } from 'mastodon/api_types/statuses';
|
import type { StatusVisibility } from 'mastodon/api_types/statuses';
|
||||||
import type { NotificationGroupMention } from 'mastodon/models/notification_group';
|
import type { NotificationGroupMention } from 'mastodon/models/notification_group';
|
||||||
|
@ -39,7 +40,7 @@ export const NotificationMention: React.FC<{
|
||||||
return (
|
return (
|
||||||
<NotificationWithStatus
|
<NotificationWithStatus
|
||||||
type='mention'
|
type='mention'
|
||||||
icon={ReplyIcon}
|
icon={statusVisibility === 'direct' ? AlternateEmailIcon : ReplyIcon}
|
||||||
iconId='reply'
|
iconId='reply'
|
||||||
accountIds={notification.sampleAccountIds}
|
accountIds={notification.sampleAccountIds}
|
||||||
count={notification.notifications_count}
|
count={notification.notifications_count}
|
||||||
|
|
Loading…
Reference in New Issue