From 8bc450a0dfe9399854acdfe76f1055f6078d47ef Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Tue, 2 Jul 2024 10:14:16 +0200 Subject: [PATCH] fix: Allow starting recurring meetings without GCal --- .../components/ActivityLibrary/ScheduleMeetingButton.tsx | 7 +------ packages/client/components/ScheduleDialog.tsx | 5 ++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx b/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx index 8f2017c7d27..3b66168331c 100644 --- a/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx +++ b/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx @@ -39,15 +39,10 @@ const ScheduleMeetingButton = (props: Props) => { fragment ScheduleMeetingButton_team on Team { id viewerTeamMember { - isSelf integrations { gcal { - auth { - id - } cloudProvider { id - clientId } } } @@ -73,7 +68,7 @@ const ScheduleMeetingButton = (props: Props) => { closeModal() } - if (!cloudProvider) return null + if (!cloudProvider && !withRecurrence) return null return ( <> diff --git a/packages/client/components/ScheduleDialog.tsx b/packages/client/components/ScheduleDialog.tsx index b3c6d5f6724..8f26e708164 100644 --- a/packages/client/components/ScheduleDialog.tsx +++ b/packages/client/components/ScheduleDialog.tsx @@ -139,12 +139,11 @@ export const ScheduleDialog = (props: Props) => { } } + const subTitle = `Create a ${withRecurrence ? 'recurring meeting series' : 'meeting'}${gcal?.cloudProvider ? ' or add the meeting to your calendar.' : '.'}` return (
Schedule Your Meeting
-
- Create a recurring meeting series or add the meeting to your calendar. -
+
{subTitle}