Rename AfterReportDialog
This commit is contained in:
+5
-1
@@ -27,7 +27,11 @@ type ReportDialogParams = {
|
||||
message: ChatBskyConvoDefs.MessageView
|
||||
}
|
||||
|
||||
export const BlockOrDeleteDialog = memo(function BlockOrDeleteDialogInner({
|
||||
/**
|
||||
* Dialog shown after a report is submitted, allowing the user to block the
|
||||
* reporter and/or leave the conversation.
|
||||
*/
|
||||
export const AfterReportDialog = memo(function BlockOrDeleteDialogInner({
|
||||
control,
|
||||
params,
|
||||
currentScreen,
|
||||
@@ -17,8 +17,8 @@ import * as Toast from '#/view/com/util/Toast'
|
||||
import {type ViewStyleProp} from '#/alf'
|
||||
import {atoms as a} from '#/alf'
|
||||
import {Button, ButtonIcon} from '#/components/Button'
|
||||
import {AfterReportDialog} from '#/components/dms/AfterReportDialog'
|
||||
import {BlockedByListDialog} from '#/components/dms/BlockedByListDialog'
|
||||
import {BlockOrDeleteDialog} from '#/components/dms/BlockOrDeleteDialog'
|
||||
import {LeaveConvoPrompt} from '#/components/dms/LeaveConvoPrompt'
|
||||
import {ReportConversationPrompt} from '#/components/dms/ReportConversationPrompt'
|
||||
import {ArrowBoxLeft_Stroke2_Corner0_Rounded as ArrowBoxLeft} from '#/components/icons/ArrowBoxLeft'
|
||||
@@ -127,7 +127,7 @@ let ConvoMenu = ({
|
||||
blockOrDeleteControl.open()
|
||||
}}
|
||||
/>
|
||||
<BlockOrDeleteDialog
|
||||
<AfterReportDialog
|
||||
control={blockOrDeleteControl}
|
||||
currentScreen={currentScreen}
|
||||
params={{
|
||||
|
||||
@@ -15,7 +15,7 @@ import {useSession} from '#/state/session'
|
||||
import * as Toast from '#/view/com/util/Toast'
|
||||
import * as ContextMenu from '#/components/ContextMenu'
|
||||
import {type TriggerProps} from '#/components/ContextMenu/types'
|
||||
import {BlockOrDeleteDialog} from '#/components/dms/BlockOrDeleteDialog'
|
||||
import {AfterReportDialog} from '#/components/dms/AfterReportDialog'
|
||||
import {BubbleQuestion_Stroke2_Corner0_Rounded as Translate} from '#/components/icons/Bubble'
|
||||
import {Clipboard_Stroke2_Corner2_Rounded as ClipboardIcon} from '#/components/icons/Clipboard'
|
||||
import {Trash_Stroke2_Corner0_Rounded as Trash} from '#/components/icons/Trash'
|
||||
@@ -184,7 +184,7 @@ export let MessageContextMenu = ({
|
||||
blockOrDeleteControl.open()
|
||||
}}
|
||||
/>
|
||||
<BlockOrDeleteDialog
|
||||
<AfterReportDialog
|
||||
control={blockOrDeleteControl}
|
||||
currentScreen="conversation"
|
||||
params={{
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
EmailDialogScreenID,
|
||||
useEmailDialogControl,
|
||||
} from '#/components/dialogs/EmailDialog'
|
||||
import {BlockOrDeleteDialog} from '#/components/dms/BlockOrDeleteDialog'
|
||||
import {AfterReportDialog} from '#/components/dms/AfterReportDialog'
|
||||
import {CircleX_Stroke2_Corner0_Rounded} from '#/components/icons/CircleX'
|
||||
import {Flag_Stroke2_Corner0_Rounded as FlagIcon} from '#/components/icons/Flag'
|
||||
import {PersonX_Stroke2_Corner0_Rounded as PersonXIcon} from '#/components/icons/Person'
|
||||
@@ -176,7 +176,7 @@ export function RejectMenu({
|
||||
blockOrDeleteControl.open()
|
||||
}}
|
||||
/>
|
||||
<BlockOrDeleteDialog
|
||||
<AfterReportDialog
|
||||
control={blockOrDeleteControl}
|
||||
currentScreen={currentScreen}
|
||||
params={{
|
||||
|
||||
Reference in New Issue
Block a user