diff --git a/apps/web/components/DestinationCalendarSelector.tsx b/apps/web/components/DestinationCalendarSelector.tsx index 8f3cb539acd263..3b917cf023c479 100644 --- a/apps/web/components/DestinationCalendarSelector.tsx +++ b/apps/web/components/DestinationCalendarSelector.tsx @@ -3,6 +3,7 @@ import React, { useEffect, useState } from "react"; import Select from "react-select"; import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { DestinationCalendar } from "@calcom/prisma/client"; import { trpc } from "@calcom/trpc/react"; interface Props { @@ -11,6 +12,7 @@ interface Props { hidePlaceholder?: boolean; /** The external Id of the connected calendar */ value: string | undefined; + destinationCalendar?: DestinationCalendar | null; } const DestinationCalendarSelector = ({ @@ -18,6 +20,7 @@ const DestinationCalendarSelector = ({ isLoading, value, hidePlaceholder, + destinationCalendar, }: Props): JSX.Element | null => { const { t } = useLocale(); const query = trpc.useQuery(["viewer.connectedCalendars"]); @@ -67,11 +70,20 @@ const DestinationCalendarSelector = ({ value: `${cal.integration}:${cal.externalId}`, })), })) ?? []; + return (