Skip to content

Commit 8426b9d

Browse files
committed
Remove moderation notifications as moderation is now automated
1 parent dfb3d88 commit 8426b9d

File tree

13 files changed

+27
-1825
lines changed

13 files changed

+27
-1825
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ yarn-error.log*
3232

3333
# generated files
3434
/public/themes
35+
/memory-bank

src/api/moderationNotifications.api.ts

Lines changed: 0 additions & 198 deletions
This file was deleted.

src/api/notifications.api.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
export interface Message {
22
id: number;
33
description: string;
4-
moderationData?: {
5-
id: number;
6-
pubkey: string;
7-
event_id: string;
8-
reason: string;
9-
created_at: string;
10-
is_read: boolean;
11-
content_type: string;
12-
media_url?: string;
13-
thumbnail_url?: string;
14-
};
154
}
165

176
export interface Mention extends Message {
@@ -23,5 +12,5 @@ export interface Mention extends Message {
2312

2413
export type Notification = Mention | Message;
2514

26-
// Export an empty array now that we're using real moderation notifications
15+
// Export an empty array for notifications
2716
export const notifications: Notification[] = [];

src/components/common/BaseNotification/BaseNotification.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ interface Icons {
88
success: React.ReactNode;
99
warning: React.ReactNode;
1010
error: React.ReactNode;
11-
moderation: React.ReactNode;
1211
mention: React.ReactNode;
1312
}
1413

15-
export type NotificationType = 'info' | 'mention' | 'success' | 'warning' | 'error' | 'moderation';
14+
export type NotificationType = 'info' | 'mention' | 'success' | 'warning' | 'error';
1615

1716
interface BaseNotificationProps {
1817
type: NotificationType;
@@ -27,7 +26,6 @@ export const BaseNotification: React.FC<BaseNotificationProps> = ({ type, mentio
2726
success: <CheckCircleFilled />,
2827
warning: <ExclamationCircleFilled />,
2928
error: <WarningFilled />,
30-
moderation: <WarningFilled style={{ color: 'var(--error-color)' }} />,
3129
mention: mentionIconSrc,
3230
};
3331

src/components/header/components/notificationsDropdown/ModerationNotificationsOverlay/ModerationNotificationsOverlay.tsx

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)