Skip to content

Commit b541a9e

Browse files
committed
refactor FlowContextMenu to use updated MenuAlertDialog
1 parent a8e4e41 commit b541a9e

File tree

2 files changed

+3
-87
lines changed

2 files changed

+3
-87
lines changed

packages/frontend/src/components/FlowRow/FlowContextMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ import {
2323
useToast,
2424
} from '@opengovsg/design-system-react'
2525

26+
import MenuAlertDialog, { AlertDialogType } from '@/components/MenuAlertDialog'
2627
import * as URLS from '@/config/urls'
2728
import { DELETE_FLOW } from '@/graphql/mutations/delete-flow'
2829
import { DUPLICATE_FLOW } from '@/graphql/mutations/duplicate-flow'
2930

30-
import MenuAlertDialog, { AlertDialogType } from './MenuAlertDialog'
31-
3231
interface FlowContextMenuProps {
3332
flow: IFlow
3433
}
@@ -184,7 +183,8 @@ export default function FlowContextMenu(props: FlowContextMenuProps) {
184183
isDialogOpen={isDialogOpen}
185184
cancelRef={cancelRef}
186185
onDialogClose={onDialogClose}
187-
type={dialogType}
186+
dialogHeader="Pipe"
187+
dialogType={dialogType}
188188
onClick={dialogType === 'delete' ? onFlowDelete : onFlowDuplicate}
189189
isLoading={dialogType === 'delete' ? isDeletingFlow : isDuplicatingFlow}
190190
/>

packages/frontend/src/components/FlowRow/MenuAlertDialog.tsx

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)