From 5f57694148efb8c61d9acad15877824ced57dbfb Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Sun, 17 Apr 2022 16:55:11 +0530 Subject: [PATCH] Fix Mobile UI for Booking Availability Page. Make it consistent with booking page (#2533) --- .../booking/pages/AvailabilityPage.tsx | 38 ++++++++++++++----- .../components/booking/pages/BookingPage.tsx | 2 +- apps/web/pages/success.tsx | 3 -- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/apps/web/components/booking/pages/AvailabilityPage.tsx b/apps/web/components/booking/pages/AvailabilityPage.tsx index c561bad55b..2fd0dfc33b 100644 --- a/apps/web/components/booking/pages/AvailabilityPage.tsx +++ b/apps/web/components/booking/pages/AvailabilityPage.tsx @@ -182,18 +182,20 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage />

{profile.name}

-
- {eventType.title} +
+

+ {eventType.title} +

{eventType?.description && ( -

+

{eventType.description}

)} -
- +

+ {eventType.length} {t("minutes")} -

+

{eventType.price > 0 && (
@@ -206,12 +208,29 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
)} +
+ {booking?.startTime && rescheduleUid && ( +
+

+ {t("former_time")} +

+

+ + {typeof booking.startTime === "string" && + parseDate(dayjs(booking.startTime), i18n)} +

+
+ )} +
+ {/* Following div is marked hidden. Should we remove it ? */}
{eventType?.description && ( -

+

{eventType.description}

)} -

+

{eventType.length} {t("minutes")}

@@ -273,7 +292,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage )} {booking?.startTime && rescheduleUid && (
-

+

{t("former_time")}

@@ -283,6 +302,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage

)}
+ )}
-
+