Scheduling infrastructure for absolutely everyone.
Fixes v2 in hrefs for webhooks
zomarsac276a965468
diff --git a/packages/features/webhooks/components/WebhookForm.tsx b/packages/features/webhooks/components/WebhookForm.tsxindex d0d101029e3..f9b52fedd31 100644--- a/packages/features/webhooks/components/WebhookForm.tsx+++ b/packages/features/webhooks/components/WebhookForm.tsx@@ -251,7 +251,7 @@ const WebhookForm = (props: {</div><div className="mt-12 flex place-content-end space-x-4">- <Button type="button" color="minimal" href={`${WEBAPP_URL}/v2/settings/developer/webhooks`}>+ <Button type="button" color="minimal" href={`${WEBAPP_URL}/settings/developer/webhooks`}>{t("cancel")}</Button><Button type="submit" loading={formMethods.formState.isSubmitting}>diff --git a/packages/features/webhooks/pages/webhooks-view.tsx b/packages/features/webhooks/pages/webhooks-view.tsxindex 8591204478e..2256134a1d3 100644--- a/packages/features/webhooks/pages/webhooks-view.tsx+++ b/packages/features/webhooks/pages/webhooks-view.tsx@@ -28,10 +28,7 @@ const WebhooksView = () => {const NewWebhookButton = () => {const { t, isLocaleReady } = useLocale();return (- <Button- color="secondary"- StartIcon={Icon.FiPlus}- href={`${WEBAPP_URL}/v2/settings/developer/webhooks/new`}>+ <Button color="secondary" StartIcon={Icon.FiPlus} href={`${WEBAPP_URL}/settings/developer/webhooks/new`}>{isLocaleReady ? t("new_webhook") : <SkeletonText className="h-4 w-24" />}</Button>);@@ -56,9 +53,7 @@ const WebhooksList = () => {key={webhook.id}webhook={webhook}lastItem={webhooks.length === index + 1}- onEditWebhook={() =>- router.push(`${WEBAPP_URL}/v2/settings/developer/webhooks/${webhook.id} `)- }+ onEditWebhook={() => router.push(`${WEBAPP_URL}/settings/developer/webhooks/${webhook.id} `)}/>))}</div>