fix: [CAL-2040] add spinner when bookerState is loading (#9873)

This commit is contained in:
Afrie Irham
2023-07-24 13:20:42 -04:00
committed by GitHub
parent 0138fdd971
commit f168ec8df6
+6 -1
View File
@@ -158,6 +158,11 @@ const BookerComponent = ({
};
const shouldShowFormInDialog = shouldShowFormInDialogMap[layout];
if (bookerState === "loading") {
return null;
}
return (
<>
{event.data ? <BookingPageTagManager eventType={event.data} /> : null}
@@ -209,7 +214,7 @@ const BookerComponent = ({
<EventMeta />
{layout !== BookerLayouts.MONTH_VIEW &&
!(layout === "mobile" && bookerState === "booking") && (
<div className=" mt-auto px-5 py-3">
<div className="mt-auto px-5 py-3 ">
<DatePicker />
</div>
)}