From 8cd420173c52698627c48aab0c636790d048f73a Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Thu, 9 Jun 2022 17:49:09 -0300 Subject: [PATCH] =?UTF-8?q?Tweaks=20requested=20by=20Ciar=C3=A1n=20(#3009)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Tweaks requested * Missing recurring event details in mobile view * Removing bg-white --- .../components/AdditionalCalendarSelector.tsx | 8 ++++- apps/web/components/App.tsx | 6 ++-- .../DestinationCalendarSelector.tsx | 8 ++++- .../booking/pages/AvailabilityPage.tsx | 30 +++++++++++++++++++ .../integrations/CalendarListContainer.tsx | 3 ++ 5 files changed, 50 insertions(+), 5 deletions(-) diff --git a/apps/web/components/AdditionalCalendarSelector.tsx b/apps/web/components/AdditionalCalendarSelector.tsx index 11cc6f6223..42f82f2743 100644 --- a/apps/web/components/AdditionalCalendarSelector.tsx +++ b/apps/web/components/AdditionalCalendarSelector.tsx @@ -61,9 +61,15 @@ const AdditionalCalendarSelector = ({ isLoading }: AdditionalCalendarSelectorPro marginLeft: "3px", }; }, + control: (defaultStyles) => { + return { + ...defaultStyles, + borderRadius: "2px", + }; + }, }} isSearchable={false} - className="mt-1 mb-2 block w-full min-w-0 flex-1 rounded-none rounded-r-md border-gray-300 font-medium text-gray-700 sm:text-sm" + className="mt-1 mb-2 block w-full min-w-0 flex-1 rounded-none rounded-r-sm border-gray-300 font-medium text-gray-700 sm:text-sm" isLoading={isLoading} components={{ Option: ImageOption }} /> diff --git a/apps/web/components/App.tsx b/apps/web/components/App.tsx index f78ad887e9..fb8912b49d 100644 --- a/apps/web/components/App.tsx +++ b/apps/web/components/App.tsx @@ -93,7 +93,7 @@ export default function App({ <>
-
+
{t("browse_apps")} @@ -103,7 +103,7 @@ export default function App({
{ // eslint-disable-next-line @next/next/no-img-element - {name} + {name} }

{name}

@@ -158,7 +158,7 @@ export default function App({ */}
-
+
{body}

{t("categories")}

diff --git a/apps/web/components/DestinationCalendarSelector.tsx b/apps/web/components/DestinationCalendarSelector.tsx index 722fe6d6c3..414073918c 100644 --- a/apps/web/components/DestinationCalendarSelector.tsx +++ b/apps/web/components/DestinationCalendarSelector.tsx @@ -85,10 +85,16 @@ const DestinationCalendarSelector = ({ ? "var(--brand-color-dark-mode)" : "var(--brand-text-color)", }), + control: (defaultStyles) => { + return { + ...defaultStyles, + borderRadius: "2px", + }; + }, }} isSearchable={false} className={classNames( - "mt-1 mb-2 block w-full min-w-0 flex-1 rounded-none rounded-r-md border-gray-300 sm:text-sm", + "mt-1 mb-2 block w-full min-w-0 flex-1 rounded-none rounded-r-sm border-gray-300 sm:text-sm", !hidePlaceholder && "font-medium" )} onChange={(option) => { diff --git a/apps/web/components/booking/pages/AvailabilityPage.tsx b/apps/web/components/booking/pages/AvailabilityPage.tsx index 0f6ed009b4..d0ea17ba51 100644 --- a/apps/web/components/booking/pages/AvailabilityPage.tsx +++ b/apps/web/components/booking/pages/AvailabilityPage.tsx @@ -338,6 +338,36 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
)} + {!rescheduleUid && eventType.recurringEvent?.count && eventType.recurringEvent?.freq && ( +
+ +

+ {t("every_for_freq", { + freq: t( + `${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}` + ), + })} +

+ { + setRecurringEventCount(parseInt(event?.target.value)); + }} + /> +

+ {t( + `${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}`, + { + count: recurringEventCount, + } + )} +

+
+ )}
diff --git a/apps/web/components/integrations/CalendarListContainer.tsx b/apps/web/components/integrations/CalendarListContainer.tsx index e5fa09b9ca..43d181ecdb 100644 --- a/apps/web/components/integrations/CalendarListContainer.tsx +++ b/apps/web/components/integrations/CalendarListContainer.tsx @@ -125,6 +125,9 @@ function ConnectedCalendarsList(props: Props) { onOpenChange={props.onChanged} /> }> +

+ Toggle the calendar(s) you want to check for conflicts to prevent double bookings. +

    {item.calendars.map((cal) => (