From 52e6711d510d8bf8f1a811e2d5097f70e6acad02 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Thu, 3 Mar 2022 19:46:07 +0530 Subject: [PATCH] Fixes incorrect Webhook Component title (#2047) * fixed incorrect Webhook Component title * fixed subtitle * fixed lint * lint fix --- apps/web/components/webhook/WebhookListContainer.tsx | 8 +++----- apps/web/pages/event-types/[type].tsx | 8 +++++++- apps/web/pages/integrations/index.tsx | 2 +- apps/web/public/static/locales/en/common.json | 2 ++ 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/web/components/webhook/WebhookListContainer.tsx b/apps/web/components/webhook/WebhookListContainer.tsx index 253a16187e..2603366d31 100644 --- a/apps/web/components/webhook/WebhookListContainer.tsx +++ b/apps/web/components/webhook/WebhookListContainer.tsx @@ -14,6 +14,8 @@ import WebhookDialogForm from "@components/webhook/WebhookDialogForm"; import WebhookListItem, { TWebhook } from "@components/webhook/WebhookListItem"; export type WebhookListContainerType = { + title: string; + subtitle: string; eventTypeId?: number; }; @@ -35,11 +37,7 @@ export default function WebhookListContainer(props: WebhookListContainerType) { query={query} success={({ data }) => ( <> - +
) => { )} /> - {isAdmin && } + {isAdmin && ( + + )}
diff --git a/apps/web/pages/integrations/index.tsx b/apps/web/pages/integrations/index.tsx index ef7a64e8d9..94fd380d65 100644 --- a/apps/web/pages/integrations/index.tsx +++ b/apps/web/pages/integrations/index.tsx @@ -289,7 +289,7 @@ export default function IntegrationsPage() { }> - + diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 1291da99e7..3def143b20 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -311,6 +311,8 @@ "event_triggers": "Event Triggers", "subscriber_url": "Subscriber Url", "create_new_webhook": "Create a new webhook", + "webhooks": "Webhooks", + "team_webhooks": "Team Webhooks", "create_new_webhook_to_account": "Create a new webhook to your account", "new_webhook": "New Webhook", "receive_cal_meeting_data": "Receive Cal meeting data at a specified URL, in real-time, when an event is scheduled or cancelled.",