fix: DatePicker not showing up in mobile mode when hideEventTypeDetails is true (#17037)
This commit is contained in:
@@ -474,7 +474,7 @@ if (only === "all" || only == "ns:monthView") {
|
||||
//@ts-ignore
|
||||
{
|
||||
elementOrSelector: "#cal-booking-place-monthView .place",
|
||||
calLink: "pro/paid",
|
||||
calLink: "free/30min",
|
||||
config: {
|
||||
iframeAttrs: {
|
||||
id: "cal-booking-place-monthView-iframe",
|
||||
@@ -499,7 +499,7 @@ if (only === "all" || only == "ns:weekView") {
|
||||
//@ts-ignore
|
||||
{
|
||||
elementOrSelector: "#cal-booking-place-weekView .place",
|
||||
calLink: "pro/paid",
|
||||
calLink: "free/30min",
|
||||
config: {
|
||||
iframeAttrs: {
|
||||
id: "cal-booking-place-weekView-iframe",
|
||||
@@ -528,7 +528,7 @@ if (only === "all" || only == "ns:columnView") {
|
||||
//@ts-ignore
|
||||
{
|
||||
elementOrSelector: "#cal-booking-place-columnView .place",
|
||||
calLink: "pro/paid",
|
||||
calLink: "free/30min",
|
||||
config: {
|
||||
iframeAttrs: {
|
||||
id: "cal-booking-place-columnView-iframe",
|
||||
|
||||
@@ -259,6 +259,8 @@ const BookerComponent = ({
|
||||
return null;
|
||||
}
|
||||
|
||||
const shouldShowMeta = !hideEventTypeDetails;
|
||||
|
||||
return (
|
||||
<>
|
||||
{event.data && !isPlatform ? <BookingPageTagManager eventType={event.data} /> : <></>}
|
||||
@@ -327,7 +329,7 @@ const BookerComponent = ({
|
||||
)}
|
||||
</BookerSection>
|
||||
)}
|
||||
{!hideEventTypeDetails && (
|
||||
{shouldShowMeta && (
|
||||
<StickyOnDesktop key="meta" className={classNames("relative z-10 flex [grid-area:meta]")}>
|
||||
<BookerSection
|
||||
area="meta"
|
||||
@@ -375,7 +377,13 @@ const BookerComponent = ({
|
||||
<BookerSection
|
||||
key="datepicker"
|
||||
area="main"
|
||||
visible={bookerState !== "booking" && layout === BookerLayouts.MONTH_VIEW}
|
||||
visible={
|
||||
bookerState !== "booking" &&
|
||||
(layout === BookerLayouts.MONTH_VIEW ||
|
||||
// Meta possibly can show DatePicker but if meta is not shown, then DatePicker must be shown here
|
||||
// FIXME: We need proper state management for this(depending on layout and bookerState)
|
||||
!shouldShowMeta)
|
||||
}
|
||||
{...fadeInLeft}
|
||||
initial="visible"
|
||||
className={`ml-[-1px] h-full flex-shrink px-5 py-3 lg:w-[var(--booker-main-width)] ${
|
||||
|
||||
Reference in New Issue
Block a user