From 149fd2ce01fddf23c1d5e3ba0ae016e25e759404 Mon Sep 17 00:00:00 2001 From: Shivanand Sonnad Date: Thu, 27 Feb 2025 14:44:39 +0000 Subject: [PATCH] feat: [AH-885]: fix issue with delete webhook modal in enterprise version (#3488) * feat: [AH-885]: fix issue with delete webhook modal in enterprise version --- .../ar/pages/webhook-list/components/Actions/DeleteAction.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/ar/pages/webhook-list/components/Actions/DeleteAction.tsx b/web/src/ar/pages/webhook-list/components/Actions/DeleteAction.tsx index f9e4883ff..97cf9fbe8 100644 --- a/web/src/ar/pages/webhook-list/components/Actions/DeleteAction.tsx +++ b/web/src/ar/pages/webhook-list/components/Actions/DeleteAction.tsx @@ -22,10 +22,9 @@ import { deleteWebhook, type Webhook } from '@harnessio/react-har-service-client import { useStrings } from '@ar/frameworks/strings' import { queryClient } from '@ar/utils/queryClient' -import { useGetSpaceRef, useParentComponents } from '@ar/hooks' +import { useGetSpaceRef, useParentComponents, useParentHooks } from '@ar/hooks' import type { RepositoryDetailsTabPathParams } from '@ar/routes/types' import { PermissionIdentifier, ResourceType } from '@ar/common/permissionTypes' -import { useConfirmationDialog } from 'hooks/useConfirmationDialog' interface DeleteWebhookActionProps { data: Webhook @@ -38,6 +37,7 @@ export default function DeleteWebhookAction(props: DeleteWebhookActionProps) { const { getString } = useStrings() const registryRef = useGetSpaceRef() const { showError, showSuccess, clear } = useToaster() + const { useConfirmationDialog } = useParentHooks() const params = useParams() const handleDeleteWebhook = async (isConfirmed: boolean) => {