From b1a152547167c14ddf5115119416215d3a9200eb Mon Sep 17 00:00:00 2001
From: Cheng CHENG
Date: Thu, 15 Sep 2022 01:32:52 +0800
Subject: [PATCH] fix: merge order of calendar freebusy (#4438)
Co-authored-by: chengcheng.frontend
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
---
.../booking/pages/AvailabilityPage.tsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/apps/web/components/booking/pages/AvailabilityPage.tsx b/apps/web/components/booking/pages/AvailabilityPage.tsx
index 128fab66c6..099a9b60f4 100644
--- a/apps/web/components/booking/pages/AvailabilityPage.tsx
+++ b/apps/web/components/booking/pages/AvailabilityPage.tsx
@@ -169,7 +169,7 @@ const SlotPicker = ({
timeZone,
});
- const slots = useMemo(() => ({ ..._1, ..._2 }), [_1, _2]);
+ const slots = useMemo(() => ({ ..._2, ..._1 }), [_1, _2]);
return (
<>
@@ -178,7 +178,7 @@ const SlotPicker = ({
className={classNames(
"mt-8 w-full px-4 sm:mt-0 sm:min-w-[455px] md:px-5",
selectedDate
- ? "sm:dark:border-darkgray-200 border-gray-200 sm:w-1/2 sm:border-r sm:p-4 sm:pr-6 md:w-1/3 "
+ ? "sm:dark:border-darkgray-200 border-gray-200 sm:w-1/2 sm:border-r sm:p-4 sm:pr-6 md:w-1/3"
: "sm:p-4"
)}
includedDates={Object.keys(slots).filter((k) => slots[k].length > 0)}
@@ -247,9 +247,9 @@ function TimezoneDropdown({
{timeZone}
{isTimeOptionsOpen ? (
-
+
) : (
-
+
)}
@@ -425,7 +425,7 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
)}
{eventType?.requiresConfirmation && (
-
+
{t("requires_confirmation")}
@@ -464,7 +464,7 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
setRecurringEventCount(parseInt(event?.target.value));
}}
/>
-
+
{t("occurrence", {
count: recurringEventCount,
})}
@@ -512,12 +512,12 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
{profile.name}
-
+
{eventType.title}
{eventType?.description && (
-
+
@@ -563,7 +563,7 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
)}
{eventType.price > 0 && (
-
+