MCPcopy Create free account
hub / github.com/experdot/pointer / showDeleteConfirm

Function showDeleteConfirm

src/renderer/src/components/common/ConfirmDialog.tsx:40–52  ·  view source on GitHub ↗
(options: {
    title?: string
    content?: React.ReactNode
    onOk: () => void | Promise<void>
  })

Source from the content-addressed store, hash-verified

38 }
39
40 const showDeleteConfirm = (options: {
41 title?: string
42 content?: React.ReactNode
43 onOk: () => void | Promise<void>
44 }): void => {
45 showConfirmDialog({
46 title: options.title || '确认删除',
47 content: options.content || '此操作不可撤销,确定要删除吗?',
48 okText: '删除',
49 danger: true,
50 onOk: options.onOk
51 })
52 }
53
54 return { showConfirmDialog, showDeleteConfirm }
55}

Callers 5

handleBatchDeleteFunction · 0.85
handleBatchDeleteFunction · 0.85
TreeViewFunction · 0.85
handleClearFolderFunction · 0.85
MessageContent.tsxFile · 0.85

Calls 1

showConfirmDialogFunction · 0.85

Tested by

no test coverage detected