From 889c36f64a734868a100409c1579671045009f9d Mon Sep 17 00:00:00 2001 From: Matt Hook Date: Mon, 18 Mar 2024 16:28:43 +1300 Subject: [PATCH] fix(docs): fix all remaining webhook app links [EE-6861] (#11392) --- .../WizardKubernetes/KubeConfigTeaserForm.tsx | 2 +- app/react/portainer/gitops/GitForm.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/react/portainer/environments/wizard/EnvironmentsCreationView/WizardKubernetes/KubeConfigTeaserForm.tsx b/app/react/portainer/environments/wizard/EnvironmentsCreationView/WizardKubernetes/KubeConfigTeaserForm.tsx index f79f1ce97..5d386ba14 100644 --- a/app/react/portainer/environments/wizard/EnvironmentsCreationView/WizardKubernetes/KubeConfigTeaserForm.tsx +++ b/app/react/portainer/environments/wizard/EnvironmentsCreationView/WizardKubernetes/KubeConfigTeaserForm.tsx @@ -20,7 +20,7 @@ const initialValues = { export function KubeConfigTeaserForm() { const kubeConfigImportDocUrl = useDocsUrl( - 'admin/environments/add/kubernetes/import' + '/admin/environments/add/kubernetes/import' ); return ( diff --git a/app/react/portainer/gitops/GitForm.tsx b/app/react/portainer/gitops/GitForm.tsx index 94aff9ec8..06f811e0a 100644 --- a/app/react/portainer/gitops/GitForm.tsx +++ b/app/react/portainer/gitops/GitForm.tsx @@ -11,7 +11,6 @@ import { TimeWindowDisplay } from '@/react/portainer/gitops/TimeWindowDisplay'; import { FormSection } from '@@/form-components/FormSection'; import { validateForm } from '@@/form-components/validate-form'; import { SwitchField } from '@@/form-components/SwitchField'; -import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp'; import { GitCredential } from '../account/git-credentials/types'; @@ -53,7 +52,6 @@ export function GitForm({ createdFromCustomTemplateId, }: Props) { const [value, setValue] = useState(initialValue); // TODO: remove this state when form is not inside angularjs - const webhooksDocsUrl = useDocsUrl(webhooksDocs); return ( @@ -113,7 +111,7 @@ export function GitForm({ onChange={(value) => handleChange({ AutoUpdate: value })} isForcePullVisible={isForcePullVisible} errors={errors.AutoUpdate as FormikErrors} - webhooksDocs={webhooksDocsUrl} + webhooksDocs={webhooksDocs} /> )}