0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

feat(console): add learn more link for webhook settings description (#4289)

This commit is contained in:
Xiao Yijun 2023-08-04 11:21:50 +08:00 committed by GitHub
parent 521b3a5c51
commit 049c2e9846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<WebhookDetailsFormType>({
defaultValues: webhookFormData,
});
const { getDocumentationUrl } = useDocumentationUrl();
const api = useApi();
const {
@ -56,6 +58,7 @@ function WebhookSettings() {
<FormCard
title="webhook_details.settings.settings"
description="webhook_details.settings.settings_description"
learnMoreLink={getDocumentationUrl('/docs/recipes/webhooks')}
>
<BasicWebhookForm />
<SigningKeyField