don't show location if only one (#5074)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>pull/4766/head
parent
8272fcd5c7
commit
3cf47c2ee9
|
@ -584,18 +584,22 @@ const BookingPage = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
|
||||||
<>
|
<>
|
||||||
|
{rescheduleUid ? (
|
||||||
|
<div className="mb-4">
|
||||||
<span className="block text-sm font-medium text-gray-700 dark:text-white">
|
<span className="block text-sm font-medium text-gray-700 dark:text-white">
|
||||||
{t("location")}
|
{t("location")}
|
||||||
</span>
|
</span>
|
||||||
{rescheduleUid ? (
|
|
||||||
<p className="mt-1 text-sm text-gray-500">
|
<p className="mt-1 text-sm text-gray-500">
|
||||||
{getHumanReadableLocationValue(booking?.location, t)}
|
{getHumanReadableLocationValue(booking?.location, t)}
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
locations.length > 1 && (
|
locations.length > 1 && (
|
||||||
<>
|
<div className="mb-4">
|
||||||
|
<span className="block text-sm font-medium text-gray-700 dark:text-white">
|
||||||
|
{t("location")}
|
||||||
|
</span>
|
||||||
{locations.map((location, i) => {
|
{locations.map((location, i) => {
|
||||||
const locationString = locationKeyToString(location);
|
const locationString = locationKeyToString(location);
|
||||||
if (!selectedLocationType) {
|
if (!selectedLocationType) {
|
||||||
|
@ -621,11 +625,10 @@ const BookingPage = ({
|
||||||
</label>
|
</label>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</>
|
</div>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
</div>
|
|
||||||
{/* TODO: Change name and id ="phone" to something generic */}
|
{/* TODO: Change name and id ="phone" to something generic */}
|
||||||
{AttendeeInput && (
|
{AttendeeInput && (
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
|
|
Loading…
Reference in New Issue