From 049c2e9846930d3982509260b1074142139120c2 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Fri, 4 Aug 2023 11:21:50 +0800 Subject: [PATCH] feat(console): add learn more link for webhook settings description (#4289) --- .../console/src/pages/WebhookDetails/WebhookSettings/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/console/src/pages/WebhookDetails/WebhookSettings/index.tsx b/packages/console/src/pages/WebhookDetails/WebhookSettings/index.tsx index 25bcf1f41..e21837d37 100644 --- a/packages/console/src/pages/WebhookDetails/WebhookSettings/index.tsx +++ b/packages/console/src/pages/WebhookDetails/WebhookSettings/index.tsx @@ -8,6 +8,7 @@ import DetailsForm from '@/components/DetailsForm'; import FormCard from '@/components/FormCard'; import UnsavedChangesAlertModal from '@/components/UnsavedChangesAlertModal'; import useApi from '@/hooks/use-api'; +import useDocumentationUrl from '@/hooks/use-documentation-url'; import BasicWebhookForm from '@/pages/Webhooks/components/BasicWebhookForm'; import { trySubmitSafe } from '@/utils/form'; @@ -25,6 +26,7 @@ function WebhookSettings() { const formMethods = useForm({ defaultValues: webhookFormData, }); + const { getDocumentationUrl } = useDocumentationUrl(); const api = useApi(); const { @@ -56,6 +58,7 @@ function WebhookSettings() {