A few booking page UI fixes (#2932)

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-05-31 13:20:51 +02:00
1 parent 514cff7b3c
commit 5225fc4317
1 file changed
+7 -13
@@ -258,12 +258,6 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
{eventType.description} {eventType.description}
</p> </p>
)} )}
{eventType.locations.length === 1 && (
<p className="text-bookinglight mb-2 dark:text-white">
<LocationMarkerIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" />
{locationKeyToString(eventType.locations[0], t)}
</p>
)}
{eventType.locations.length === 1 && ( {eventType.locations.length === 1 && (
<p className="text-bookinglight mb-2 dark:text-white"> <p className="text-bookinglight mb-2 dark:text-white">
{Object.values(AppStoreLocationType).includes( {Object.values(AppStoreLocationType).includes(
@@ -278,12 +272,12 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
</p> </p>
)} )}
<p className="text-bookinglight mb-2 dark:text-white"> <p className="text-bookinglight mb-2 dark:text-white">
<ClockIcon className="mr-[10px] -mt-1 ml-[2px] inline-block h-4 w-4" /> <ClockIcon className="mr-[10px] -mt-1 ml-[2px] inline-block h-4 w-4 text-gray-400" />
{eventType.length} {t("minutes")} {eventType.length} {t("minutes")}
</p> </p>
{eventType.price > 0 && ( {eventType.price > 0 && (
<div className="text-gray-600 dark:text-white"> <div className="text-bookinglight dark:text-white">
<CreditCardIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 dark:text-gray-400" /> <CreditCardIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" />
<IntlProvider locale="en"> <IntlProvider locale="en">
<FormattedNumber <FormattedNumber
value={eventType.price / 100.0} value={eventType.price / 100.0}
@@ -388,7 +382,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
{!rescheduleUid && eventType.recurringEvent?.count && eventType.recurringEvent?.freq && ( {!rescheduleUid && eventType.recurringEvent?.count && eventType.recurringEvent?.freq && (
<div className="mb-3 text-gray-600 dark:text-white"> <div className="mb-3 text-gray-600 dark:text-white">
<RefreshIcon className="mr-[10px] -mt-1 ml-[2px] inline-block h-4 w-4 text-gray-400" /> <RefreshIcon className="mr-[10px] -mt-1 ml-[2px] inline-block h-4 w-4 text-gray-400" />
<p className="mb-1 -ml-2 inline px-2 py-1"> <p className="text-bookinglight mb-1 -ml-2 inline px-2 py-1">
{t("every_for_freq", { {t("every_for_freq", {
freq: t( freq: t(
`${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}` `${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}`
@@ -405,7 +399,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
setRecurringEventCount(parseInt(event?.target.value)); setRecurringEventCount(parseInt(event?.target.value));
}} }}
/> />
<p className="inline text-gray-600 dark:text-white"> <p className="text-bookinglight inline dark:text-white">
{t(`${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}`, { {t(`${RRuleFrequency[eventType.recurringEvent.freq].toString().toLowerCase()}`, {
count: recurringEventCount, count: recurringEventCount,
})} })}
@@ -413,7 +407,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
</div> </div>
)} )}
{eventType.price > 0 && ( {eventType.price > 0 && (
<p className="mb-1 -ml-2 px-2 py-1 text-gray-600 dark:text-white"> <p className="text-bookinglight mb-1 -ml-2 px-2 py-1 dark:text-white">
<CreditCardIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" /> <CreditCardIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" />
<IntlProvider locale="en"> <IntlProvider locale="en">
<FormattedNumber <FormattedNumber
@@ -496,7 +490,7 @@ const AvailabilityPage = ({ profile, plan, eventType, workingHours, previousPage
function TimezoneDropdown() { function TimezoneDropdown() {
return ( return (
<Collapsible.Root open={isTimeOptionsOpen} onOpenChange={setIsTimeOptionsOpen}> <Collapsible.Root open={isTimeOptionsOpen} onOpenChange={setIsTimeOptionsOpen}>
<Collapsible.Trigger className="min-w-32 mb-1 -ml-2 px-2 py-1 text-left text-gray-600 dark:text-white"> <Collapsible.Trigger className="min-w-32 text-bookinglight mb-1 -ml-2 px-2 py-1 text-left dark:text-white">
<GlobeIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" /> <GlobeIcon className="mr-[10px] ml-[2px] -mt-1 inline-block h-4 w-4 text-gray-400" />
{timeZone()} {timeZone()}
{isTimeOptionsOpen ? ( {isTimeOptionsOpen ? (