Fixes incorrect Webhook Component title (#2047)
* fixed incorrect Webhook Component title * fixed subtitle * fixed lint * lint fix
This commit is contained in:
parent
0fb44887e3
commit
52e6711d51
4 changed files with 13 additions and 7 deletions
|
@ -14,6 +14,8 @@ import WebhookDialogForm from "@components/webhook/WebhookDialogForm";
|
||||||
import WebhookListItem, { TWebhook } from "@components/webhook/WebhookListItem";
|
import WebhookListItem, { TWebhook } from "@components/webhook/WebhookListItem";
|
||||||
|
|
||||||
export type WebhookListContainerType = {
|
export type WebhookListContainerType = {
|
||||||
|
title: string;
|
||||||
|
subtitle: string;
|
||||||
eventTypeId?: number;
|
eventTypeId?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,11 +37,7 @@ export default function WebhookListContainer(props: WebhookListContainerType) {
|
||||||
query={query}
|
query={query}
|
||||||
success={({ data }) => (
|
success={({ data }) => (
|
||||||
<>
|
<>
|
||||||
<ShellSubHeading
|
<ShellSubHeading className="mt-10" title={props.title} subtitle={props.subtitle} />
|
||||||
className="mt-10"
|
|
||||||
title={t("Team Webhooks")}
|
|
||||||
subtitle={t("receive_cal_event_meeting_data")}
|
|
||||||
/>
|
|
||||||
<List>
|
<List>
|
||||||
<ListItem className={classNames("flex-col")}>
|
<ListItem className={classNames("flex-col")}>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -1531,7 +1531,13 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
</Dialog>
|
</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>
|
</ClientSuspense>
|
||||||
</Shell>
|
</Shell>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -289,7 +289,7 @@ export default function IntegrationsPage() {
|
||||||
<ClientSuspense fallback={<Loader />}>
|
<ClientSuspense fallback={<Loader />}>
|
||||||
<IntegrationsContainer />
|
<IntegrationsContainer />
|
||||||
<CalendarListContainer />
|
<CalendarListContainer />
|
||||||
<WebhookListContainer />
|
<WebhookListContainer title={t("webhooks")} subtitle={t("receive_cal_meeting_data")} />
|
||||||
<IframeEmbedContainer />
|
<IframeEmbedContainer />
|
||||||
<Web3Container />
|
<Web3Container />
|
||||||
</ClientSuspense>
|
</ClientSuspense>
|
||||||
|
|
|
@ -311,6 +311,8 @@
|
||||||
"event_triggers": "Event Triggers",
|
"event_triggers": "Event Triggers",
|
||||||
"subscriber_url": "Subscriber Url",
|
"subscriber_url": "Subscriber Url",
|
||||||
"create_new_webhook": "Create a new webhook",
|
"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",
|
"create_new_webhook_to_account": "Create a new webhook to your account",
|
||||||
"new_webhook": "New Webhook",
|
"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.",
|
"receive_cal_meeting_data": "Receive Cal meeting data at a specified URL, in real-time, when an event is scheduled or cancelled.",
|
||||||
|
|
Loading…
Reference in a new issue