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:
parent
521b3a5c51
commit
049c2e9846
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ import DetailsForm from '@/components/DetailsForm';
|
||||||
import FormCard from '@/components/FormCard';
|
import FormCard from '@/components/FormCard';
|
||||||
import UnsavedChangesAlertModal from '@/components/UnsavedChangesAlertModal';
|
import UnsavedChangesAlertModal from '@/components/UnsavedChangesAlertModal';
|
||||||
import useApi from '@/hooks/use-api';
|
import useApi from '@/hooks/use-api';
|
||||||
|
import useDocumentationUrl from '@/hooks/use-documentation-url';
|
||||||
import BasicWebhookForm from '@/pages/Webhooks/components/BasicWebhookForm';
|
import BasicWebhookForm from '@/pages/Webhooks/components/BasicWebhookForm';
|
||||||
import { trySubmitSafe } from '@/utils/form';
|
import { trySubmitSafe } from '@/utils/form';
|
||||||
|
|
||||||
|
@ -25,6 +26,7 @@ function WebhookSettings() {
|
||||||
const formMethods = useForm<WebhookDetailsFormType>({
|
const formMethods = useForm<WebhookDetailsFormType>({
|
||||||
defaultValues: webhookFormData,
|
defaultValues: webhookFormData,
|
||||||
});
|
});
|
||||||
|
const { getDocumentationUrl } = useDocumentationUrl();
|
||||||
const api = useApi();
|
const api = useApi();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
@ -56,6 +58,7 @@ function WebhookSettings() {
|
||||||
<FormCard
|
<FormCard
|
||||||
title="webhook_details.settings.settings"
|
title="webhook_details.settings.settings"
|
||||||
description="webhook_details.settings.settings_description"
|
description="webhook_details.settings.settings_description"
|
||||||
|
learnMoreLink={getDocumentationUrl('/docs/recipes/webhooks')}
|
||||||
>
|
>
|
||||||
<BasicWebhookForm />
|
<BasicWebhookForm />
|
||||||
<SigningKeyField
|
<SigningKeyField
|
||||||
|
|
Loading…
Reference in a new issue