From af83350d0466a7a1ae47ac56d4a87bcfb6b8a1d3 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Thu, 22 Dec 2022 20:57:44 +0100 Subject: [PATCH] replaced webhook icon with actual webhook logo (#6161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * replaced webhook icon with actual webhook logo * Apply suggestions from code review * Linting Co-authored-by: Omar López Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/components/eventtype/EventTeamWebhooksTab.tsx | 3 ++- apps/web/components/eventtype/EventTypeSingleLayout.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/components/eventtype/EventTeamWebhooksTab.tsx b/apps/web/components/eventtype/EventTeamWebhooksTab.tsx index 07e7284390..5abbda8a68 100644 --- a/apps/web/components/eventtype/EventTeamWebhooksTab.tsx +++ b/apps/web/components/eventtype/EventTeamWebhooksTab.tsx @@ -1,5 +1,6 @@ import { EventTypeSetupInfered, FormValues } from "pages/event-types/[type]"; import { useState } from "react"; +import { TbWebhook } from "react-icons/tb"; import { WebhookForm } from "@calcom/features/webhooks/components"; import { WebhookFormSubmitData } from "@calcom/features/webhooks/components/WebhookForm"; @@ -117,7 +118,7 @@ export const EventTeamWebhooksTab = ({ ) : ( } diff --git a/apps/web/components/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/eventtype/EventTypeSingleLayout.tsx index f357d015ce..236e7735c9 100644 --- a/apps/web/components/eventtype/EventTypeSingleLayout.tsx +++ b/apps/web/components/eventtype/EventTypeSingleLayout.tsx @@ -3,6 +3,7 @@ import { useRouter } from "next/router"; import { EventTypeSetupInfered, FormValues } from "pages/event-types/[type]"; import { useMemo, useState } from "react"; import { UseFormReturn } from "react-hook-form"; +import { TbWebhook } from "react-icons/tb"; import { classNames } from "@calcom/lib"; import { CAL_URL } from "@calcom/lib/constants"; @@ -159,7 +160,7 @@ function EventTypeSingleLayout({ navigation.push({ name: "webhooks", href: `/event-types/${eventType.id}?tabName=webhooks`, - icon: Icon.FiLink, + icon: TbWebhook, info: `${eventType.webhooks.filter((webhook) => webhook.active).length} ${t("active")}`, }); }