MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / handleOk

Function handleOk

frontend/src/components/deleteModal/index.tsx:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 const { title, projectName, open, onDeleteConfirm, onDeleteCancel, describe, buttonType = 'delete-button' } = props
14 const parts = describe.split(new RegExp(`(${projectName})`, 'i'))
15 const handleOk = async () => {
16 await setDeleteLoading(true)
17 await onDeleteConfirm()
18 await setDeleteLoading(false)
19 };
20
21 const handleCancel = () => {
22 onDeleteCancel()

Callers 1

handleSuccessFunction · 0.85

Calls 1

onDeleteConfirmFunction · 0.50

Tested by

no test coverage detected