Fixes v2 in hrefs for webhooks
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user