From 2ee021a87feef88325d2d28e40ea00521a57811c Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Fri, 3 Nov 2023 09:50:50 +0000 Subject: [PATCH] fix:installed-calendar-info --- apps/web/components/apps/CalendarListContainer.tsx | 1 + packages/features/calendars/DestinationCalendarSelector.tsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/components/apps/CalendarListContainer.tsx b/apps/web/components/apps/CalendarListContainer.tsx index b2c8135119..49bfdc971d 100644 --- a/apps/web/components/apps/CalendarListContainer.tsx +++ b/apps/web/components/apps/CalendarListContainer.tsx @@ -221,6 +221,7 @@ export function CalendarListContainer(props: { heading?: boolean; fromOnboarding hidePlaceholder isLoading={mutation.isLoading} value={data.destinationCalendar?.externalId} + hideAdvancedText /> diff --git a/packages/features/calendars/DestinationCalendarSelector.tsx b/packages/features/calendars/DestinationCalendarSelector.tsx index a996870d26..4cf7ffde07 100644 --- a/packages/features/calendars/DestinationCalendarSelector.tsx +++ b/packages/features/calendars/DestinationCalendarSelector.tsx @@ -17,6 +17,7 @@ interface Props { destinationCalendar?: DestinationCalendar | null; value: string | undefined; maxWidth?: number; + hideAdvancedText?: boolean; } interface Option { @@ -51,6 +52,7 @@ const DestinationCalendarSelector = ({ isLoading, value, hidePlaceholder, + hideAdvancedText, maxWidth, destinationCalendar, }: Props): JSX.Element | null => { @@ -177,7 +179,9 @@ const DestinationCalendarSelector = ({ components={{ SingleValue: SingleValueComponent, Option: OptionComponent }} isMulti={false} /> -

{t("you_can_override_calendar_in_advanced_tab")}

+ {hideAdvancedText ? null : ( +

{t("you_can_override_calendar_in_advanced_tab")}

+ )} ); };