From a3786ee5cddceaa6efa78bf4ec2c9768f3abc674 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Sat, 16 Mar 2024 17:02:05 +0900 Subject: Update Modal.tsx --- src/view/com/modals/report/Modal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/view/com/modals/report/Modal.tsx b/src/view/com/modals/report/Modal.tsx index 236f32737..dbe364846 100644 --- a/src/view/com/modals/report/Modal.tsx +++ b/src/view/com/modals/report/Modal.tsx @@ -23,10 +23,10 @@ const DMCA_LINK = 'https://bsky.social/about/support/copyright' export const snapPoints = [575] const CollectionNames = { - [CollectionId.FeedGenerator]: 'Feed', - [CollectionId.Profile]: 'Profile', - [CollectionId.List]: 'List', - [CollectionId.Post]: 'Post', + [CollectionId.FeedGenerator]: Feed, + [CollectionId.Profile]: Profile, + [CollectionId.List]: List, + [CollectionId.Post]: Post, } type ReportComponentProps = @@ -129,9 +129,9 @@ export function Component(content: ReportComponentProps) { // If no atUri is passed, that means the reporting collection is account const getCollectionNameForReport = (atUri: AtUri | null) => { - if (!atUri) return 'Account' + if (!atUri) return Account // Generic fallback for any collection being reported - return CollectionNames[atUri.collection as CollectionId] || 'Content' + return CollectionNames[atUri.collection as CollectionId] || Content } const SelectIssue = ({ -- cgit 1.4.1