chore: booker atom username / teams props enabled queries (#16514)
This commit is contained in:
@@ -92,13 +92,10 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
<h1>{eventTypeSlug}</h1>
|
||||
<Booker
|
||||
eventSlug={eventTypeSlug}
|
||||
username={props.calUsername ?? ""}
|
||||
onCreateBookingSuccess={(data) => {
|
||||
setBookingTitle(data.data.title ?? "");
|
||||
router.push(`/${data.data.uid}`);
|
||||
}}
|
||||
teamId={teams?.[0]?.id || 0}
|
||||
isTeamEvent={isTeamEvent}
|
||||
duration={eventTypeDuration}
|
||||
customClassNames={{
|
||||
bookerContainer: "!bg-[#F5F2FE] [&_button:!rounded-full] border-subtle border",
|
||||
@@ -113,6 +110,9 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
availableTimes: "!bg-[#D7CEF5]",
|
||||
},
|
||||
}}
|
||||
{...(isTeamEvent
|
||||
? { isTeamEvent: true, teamId: teams?.[0]?.id || 0 }
|
||||
: { username: props.calUsername })}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user