mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 18:31:12 -05:00
Fix moderation type errors
This commit is contained in:
@@ -12,11 +12,11 @@ interface ActivityCardProps {
|
||||
entity_type?: string;
|
||||
entity_name?: string;
|
||||
timestamp: string;
|
||||
moderator_id?: string;
|
||||
moderator_id?: string | null;
|
||||
moderator?: {
|
||||
username: string;
|
||||
display_name?: string;
|
||||
avatar_url?: string;
|
||||
display_name?: string | null;
|
||||
avatar_url?: string | null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -295,8 +295,8 @@ export function ItemEditDialog({ item, items, open, onOpenChange, onComplete }:
|
||||
// Simple photo editing form for caption and credit
|
||||
interface PhotoItem {
|
||||
url: string;
|
||||
caption?: string;
|
||||
credit?: string;
|
||||
caption?: string | null;
|
||||
credit?: string | null;
|
||||
}
|
||||
|
||||
function PhotoEditForm({
|
||||
|
||||
@@ -24,7 +24,7 @@ import { logger } from '@/lib/logger';
|
||||
interface Moderator {
|
||||
user_id: string;
|
||||
username: string;
|
||||
display_name?: string;
|
||||
display_name?: string | null;
|
||||
role: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ interface ActivityItem {
|
||||
entity_type?: string;
|
||||
entity_name?: string;
|
||||
timestamp: string;
|
||||
moderator_id?: string;
|
||||
moderator_id?: string | null;
|
||||
moderator?: {
|
||||
username: string;
|
||||
display_name?: string;
|
||||
avatar_url?: string;
|
||||
display_name?: string | null;
|
||||
avatar_url?: string | null;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -71,12 +71,12 @@ interface Report {
|
||||
reported_entity_type: ReportEntityType;
|
||||
reported_entity_id: string;
|
||||
report_type: string;
|
||||
reason: string;
|
||||
reason: string | null;
|
||||
status: string;
|
||||
created_at: string;
|
||||
reporter_profile?: {
|
||||
username: string;
|
||||
display_name?: string;
|
||||
display_name?: string | null;
|
||||
};
|
||||
reported_content?: ReportedContent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user