Remove unused notification type

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
Alex Gleason
2024-05-25 11:23:09 -05:00
committed by marcin mikołajczak
parent e1de76ae01
commit 8a2f6d251e
4 changed files with 5 additions and 17 deletions

View File

@ -51,7 +51,6 @@ const icons: Record<NotificationType, string> = {
move: require('@tabler/icons/outline/briefcase.svg'),
'pleroma:chat_mention': require('@tabler/icons/outline/messages.svg'),
'pleroma:emoji_reaction': require('@tabler/icons/outline/mood-happy.svg'),
user_approved: require('@tabler/icons/outline/user-plus.svg'),
update: require('@tabler/icons/outline/pencil.svg'),
'pleroma:event_reminder': require('@tabler/icons/outline/calendar-time.svg'),
'pleroma:participation_request': require('@tabler/icons/outline/calendar-event.svg'),
@ -99,10 +98,6 @@ const messages: Record<NotificationType, MessageDescriptor> = defineMessages({
id: 'notification.pleroma:emoji_reaction',
defaultMessage: '{name} reacted to your post',
},
user_approved: {
id: 'notification.user_approved',
defaultMessage: 'Welcome to {instance}!',
},
update: {
id: 'notification.update',
defaultMessage: '{name} edited a post you interacted with',
@ -285,15 +280,6 @@ const Notification: React.FC<INotification> = (props) => {
const renderContent = () => {
switch (type as NotificationType) {
case 'follow':
case 'user_approved':
return account && typeof account === 'object' ? (
<AccountContainer
id={account.id}
hidden={hidden}
avatarSize={avatarSize}
withRelationship
/>
) : null;
case 'follow_request':
return account && typeof account === 'object' ? (
<AccountContainer