diff options
author | Eric Bailey <git@esb.lol> | 2024-05-17 17:56:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 17:56:58 -0500 |
commit | 8b3bfb3cf7459af59fb4535241a6251e35e88eb9 (patch) | |
tree | a6e013bb5b4f9f36ba04c3841fa43a2c688f9686 /src/components/ReportDialog/SelectReportOptionView.tsx | |
parent | 1cdcb3e6c333b7ad5aa53676163643d7f43d1528 (diff) | |
download | voidsky-8b3bfb3cf7459af59fb4535241a6251e35e88eb9.tar.zst |
Make generic convo report dialog (#4085)
Diffstat (limited to 'src/components/ReportDialog/SelectReportOptionView.tsx')
-rw-r--r-- | src/components/ReportDialog/SelectReportOptionView.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/ReportDialog/SelectReportOptionView.tsx b/src/components/ReportDialog/SelectReportOptionView.tsx index da3c43440..405384476 100644 --- a/src/components/ReportDialog/SelectReportOptionView.tsx +++ b/src/components/ReportDialog/SelectReportOptionView.tsx @@ -25,12 +25,10 @@ import {SquareArrowTopRight_Stroke2_Corner0_Rounded as SquareArrowTopRight} from import {Text} from '#/components/Typography' import {ReportDialogProps} from './types' -type ParamsWithMessages = ReportDialogProps['params'] | {type: 'message'} - export function SelectReportOptionView({ ...props }: { - params: ParamsWithMessages + params: ReportDialogProps['params'] labelers: AppBskyLabelerDefs.LabelerViewDetailed[] onSelectReportOption: (reportOption: ReportOption) => void goBack: () => void @@ -57,9 +55,12 @@ export function SelectReportOptionView({ } else if (props.params.type === 'feedgen') { title = _(msg`Report this feed`) description = _(msg`Why should this feed be reviewed?`) - } else if (props.params.type === 'message') { + } else if (props.params.type === 'convoMessage') { title = _(msg`Report this message`) description = _(msg`Why should this message be reviewed?`) + } else if (props.params.type === 'convoAccount') { + title = _(msg`Report this account`) + description = _(msg`Why should this account be reviewed?`) } return { |