diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/profile/ProfileMenu.tsx | 10 | ||||
-rw-r--r-- | src/view/com/util/forms/PostDropdownBtnMenuItems.tsx | 12 | ||||
-rw-r--r-- | src/view/screens/ProfileList.tsx | 12 |
3 files changed, 22 insertions, 12 deletions
diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index 1d9c7a8e4..ab953f6fa 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -38,8 +38,11 @@ import { import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus' import {SpeakerVolumeFull_Stroke2_Corner0_Rounded as Unmute} from '#/components/icons/Speaker' import * as Menu from '#/components/Menu' +import { + ReportDialog, + useReportDialogControl, +} from '#/components/moderation/ReportDialog' import * as Prompt from '#/components/Prompt' -import {ReportDialog, useReportDialogControl} from '#/components/ReportDialog' let ProfileMenu = ({ profile, @@ -365,7 +368,10 @@ let ProfileMenu = ({ <ReportDialog control={reportDialogControl} - params={{type: 'account', did: profile.did}} + subject={{ + ...profile, + $type: 'app.bsky.actor.defs#profileViewDetailed', + }} /> <Prompt.Basic diff --git a/src/view/com/util/forms/PostDropdownBtnMenuItems.tsx b/src/view/com/util/forms/PostDropdownBtnMenuItems.tsx index f50c60173..c8ddf0f20 100644 --- a/src/view/com/util/forms/PostDropdownBtnMenuItems.tsx +++ b/src/view/com/util/forms/PostDropdownBtnMenuItems.tsx @@ -80,8 +80,11 @@ import {Trash_Stroke2_Corner0_Rounded as Trash} from '#/components/icons/Trash' import {Warning_Stroke2_Corner0_Rounded as Warning} from '#/components/icons/Warning' import {Loader} from '#/components/Loader' import * as Menu from '#/components/Menu' +import { + ReportDialog, + useReportDialogControl, +} from '#/components/moderation/ReportDialog' import * as Prompt from '#/components/Prompt' -import {ReportDialog, useReportDialogControl} from '#/components/ReportDialog' import * as Toast from '../Toast' let PostDropdownMenuItems = ({ @@ -756,10 +759,9 @@ let PostDropdownMenuItems = ({ <ReportDialog control={reportDialogControl} - params={{ - type: 'post', - uri: postUri, - cid: postCid, + subject={{ + ...post, + $type: 'app.bsky.feed.defs#postView', }} /> diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 435b09c07..89dc72410 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -75,8 +75,11 @@ import {useDialogControl} from '#/components/Dialog' import {PersonPlus_Stroke2_Corner0_Rounded as PersonPlusIcon} from '#/components/icons/Person' import * as Layout from '#/components/Layout' import * as Hider from '#/components/moderation/Hider' +import { + ReportDialog, + useReportDialogControl, +} from '#/components/moderation/ReportDialog' import * as Prompt from '#/components/Prompt' -import {ReportDialog, useReportDialogControl} from '#/components/ReportDialog' import {RichText} from '#/components/RichText' const SECTION_TITLES_CURATE = ['Posts', 'People'] @@ -672,10 +675,9 @@ function Header({ avatarType="list"> <ReportDialog control={reportDialogControl} - params={{ - type: 'list', - uri: list.uri, - cid: list.cid, + subject={{ + ...list, + $type: 'app.bsky.graph.defs#listView', }} /> {isCurateList ? ( |