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