Fixes incorrect Webhook Component title (#2047)

* fixed incorrect Webhook Component title

* fixed subtitle

* fixed lint

* lint fix
pull/2045/head^2
Syed Ali Shahbaz 2022-03-03 19:46:07 +05:30 committed by GitHub
parent 0fb44887e3
commit 52e6711d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 7 deletions

View File

@ -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

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>

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>

View File

@ -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.",