From 8a2f6d251e533e7b359b0794ffa642b5070512cc Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 25 May 2024 11:23:09 -0500 Subject: [PATCH] Remove unused notification type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../notifications/components/notification.tsx | 14 -------------- src/locales/en.json | 6 +++++- src/service-worker/web-push-locales.ts | 1 - src/utils/notification.ts | 1 - 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/features/notifications/components/notification.tsx b/src/features/notifications/components/notification.tsx index 6184d358ef..71645212a6 100644 --- a/src/features/notifications/components/notification.tsx +++ b/src/features/notifications/components/notification.tsx @@ -51,7 +51,6 @@ const icons: Record = { 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 = 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 = (props) => { const renderContent = () => { switch (type as NotificationType) { case 'follow': - case 'user_approved': - return account && typeof account === 'object' ? ( -