Fixes incorrect Webhook Component title (#2047)

* fixed incorrect Webhook Component title

* fixed subtitle

* fixed lint

* lint fix
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-03-03 14:16:07 +00:00
1 parent 0fb44887e3
commit 52e6711d51
4 files changed
+13 -7

No files matched your search

@@ -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 }) => (
<>
<ShellSubHeading
className="mt-10"
title={t("Team Webhooks")}
subtitle={t("receive_cal_event_meeting_data")}
/>
<ShellSubHeading className="mt-10" title={props.title} subtitle={props.subtitle} />
<List>
<ListItem className={classNames("flex-col")}>
<div
+7 -1
View File
@@ -1531,7 +1531,13 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
</Dialog>
)}
/>
{isAdmin && <WebhookListContainer eventTypeId={props.eventType.id} />}
{isAdmin && (
<WebhookListContainer
title={t("team_webhooks")}
subtitle={t("receive_cal_event_meeting_data")}
eventTypeId={props.eventType.id}
/>
)}
</ClientSuspense>
</Shell>
</div>
+1 -1
View File
@@ -289,7 +289,7 @@ export default function IntegrationsPage() {
<ClientSuspense fallback={<Loader />}>
<IntegrationsContainer />
<CalendarListContainer />
<WebhookListContainer />
<WebhookListContainer title={t("webhooks")} subtitle={t("receive_cal_meeting_data")} />
<IframeEmbedContainer />
<Web3Container />
</ClientSuspense>
@@ -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.",