Remove unused notification type
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
e1de76ae01
commit
8a2f6d251e
4 changed files with 5 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -414,8 +414,12 @@
|
|||
"compose.character_counter.title": "Used {chars} out of {maxChars} {maxChars, plural, one {character} other {characters}}",
|
||||
"compose.edit_success": "Your post was edited",
|
||||
"compose.invalid_schedule": "You must schedule a post at least 5 minutes out.",
|
||||
"compose.language_dropdown.add_language": "Add language",
|
||||
"compose.language_dropdown.delete_language": "DElete language",
|
||||
"compose.language_dropdown.more_languages": "{count, plural, one {# more language} other {# more languages}}",
|
||||
"compose.language_dropdown.prompt": "Select language",
|
||||
"compose.language_dropdown.search": "Search language…",
|
||||
"compose.language_dropdown.suggestion": "{language} (detected)",
|
||||
"compose.reply_group_indicator.message": "Posting to {groupLink}",
|
||||
"compose.submit_success": "Your post was sent!",
|
||||
"compose_event.create": "Create",
|
||||
|
@ -1088,7 +1092,6 @@
|
|||
"notification.reblog": "{name} reposted your post",
|
||||
"notification.status": "{name} just posted",
|
||||
"notification.update": "{name} edited a post you interacted with",
|
||||
"notification.user_approved": "Welcome to {instance}!",
|
||||
"notifications.filter.all": "All",
|
||||
"notifications.filter.boosts": "Reposts",
|
||||
"notifications.filter.events": "Events",
|
||||
|
@ -1410,6 +1413,7 @@
|
|||
"status.interactions.favourites": "{count, plural, one {Like} other {Likes}}",
|
||||
"status.interactions.quotes": "{count, plural, one {Quote} other {Quotes}}",
|
||||
"status.interactions.reblogs": "{count, plural, one {Repost} other {Reposts}}",
|
||||
"status.language_versions": "The post has multiple language versions.",
|
||||
"status.load_more": "Load more",
|
||||
"status.mention": "Mention @{name}",
|
||||
"status.more": "More",
|
||||
|
|
|
@ -20,7 +20,6 @@ filenames.forEach(filename => {
|
|||
'notification.poll': full['notification.poll'] || '',
|
||||
'notification.status': full['notification.status'] || '',
|
||||
'notification.move': full['notification.move'] || '',
|
||||
'notification.user_approved': full['notification.user_approved'] || '',
|
||||
|
||||
'notification.pleroma:chat_mention': full['notification.pleroma:chat_mention'] || '',
|
||||
'notification.pleroma:emoji_reaction': full['notification.pleroma:emoji_reaction'] || '',
|
||||
|
|
|
@ -10,7 +10,6 @@ const NOTIFICATION_TYPES = [
|
|||
'move',
|
||||
'pleroma:chat_mention',
|
||||
'pleroma:emoji_reaction',
|
||||
'user_approved',
|
||||
'update',
|
||||
'pleroma:event_reminder',
|
||||
'pleroma:participation_request',
|
||||
|
|
Loading…
Reference in a new issue