diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-03-16 17:02:05 +0900 |
---|---|---|
committer | Minseo Lee <itoupluk427@gmail.com> | 2024-03-16 17:02:05 +0900 |
commit | a3786ee5cddceaa6efa78bf4ec2c9768f3abc674 (patch) | |
tree | ee00197b911b5aa3241ebc6cf8811030a52cda1b /src | |
parent | 12d8f0071abc02eda8b09c181ff69d188b5b6fe5 (diff) | |
download | voidsky-a3786ee5cddceaa6efa78bf4ec2c9768f3abc674.tar.zst |
Update Modal.tsx
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/modals/report/Modal.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
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]: <Trans>Feed</Trans>, + [CollectionId.Profile]: <Trans>Profile</Trans>, + [CollectionId.List]: <Trans>List</Trans>, + [CollectionId.Post]: <Trans>Post</Trans>, } 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 <Trans>Account</Trans> // Generic fallback for any collection being reported - return CollectionNames[atUri.collection as CollectionId] || 'Content' + return CollectionNames[atUri.collection as CollectionId] || <Trans>Content</Trans> } const SelectIssue = ({ |