fix: [CAL-2040] add spinner when bookerState is loading (#9873)
parent
0138fdd971
commit
f168ec8df6
|
@ -158,6 +158,11 @@ const BookerComponent = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
const shouldShowFormInDialog = shouldShowFormInDialogMap[layout];
|
const shouldShowFormInDialog = shouldShowFormInDialogMap[layout];
|
||||||
|
|
||||||
|
if (bookerState === "loading") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{event.data ? <BookingPageTagManager eventType={event.data} /> : null}
|
{event.data ? <BookingPageTagManager eventType={event.data} /> : null}
|
||||||
|
@ -209,7 +214,7 @@ const BookerComponent = ({
|
||||||
<EventMeta />
|
<EventMeta />
|
||||||
{layout !== BookerLayouts.MONTH_VIEW &&
|
{layout !== BookerLayouts.MONTH_VIEW &&
|
||||||
!(layout === "mobile" && bookerState === "booking") && (
|
!(layout === "mobile" && bookerState === "booking") && (
|
||||||
<div className=" mt-auto px-5 py-3">
|
<div className="mt-auto px-5 py-3 ">
|
||||||
<DatePicker />
|
<DatePicker />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue