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 className="mb-4">
|
||||
<>
|
||||
{rescheduleUid ? (
|
||||
<div className="mb-4">
|
||||
<span className="block text-sm font-medium text-gray-700 dark:text-white">
|
||||
{t("location")}
|
||||
</span>
|
||||
{rescheduleUid ? (
|
||||
<p className="mt-1 text-sm text-gray-500">
|
||||
{getHumanReadableLocationValue(booking?.location, t)}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
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) => {
|
||||
const locationString = locationKeyToString(location);
|
||||
if (!selectedLocationType) {
|
||||
|
@ -621,11 +625,10 @@ const BookingPage = ({
|
|||
</label>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
{/* TODO: Change name and id ="phone" to something generic */}
|
||||
{AttendeeInput && (
|
||||
<div className="mb-4">
|
||||
|
|
Loading…
Reference in New Issue