* perf: don't fetch all the hosts #18319 followup * undo for user events * undo for regular user events * fix: limitHostsToThree -> hostsLimit * accepting hostLimit prop in <Booker /> * Update booking.tsx * hostLimit -> hostsLimit
This commit is contained in:
@@ -118,6 +118,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
{...(isTeamEvent
|
||||
? { isTeamEvent: true, teamId: teams?.[0]?.id || 0 }
|
||||
: { username: props.calUsername })}
|
||||
hostsLimit={3}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
@@ -132,6 +133,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
}}
|
||||
duration={eventTypeDuration}
|
||||
bannerUrl="https://i0.wp.com/mahala.co.uk/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg?fit=800%2C258&ssl=1"
|
||||
hostsLimit={3}
|
||||
/>
|
||||
)}
|
||||
{bookingTitle && <p>Booking created: {bookingTitle}</p>}
|
||||
|
||||
Reference in New Issue
Block a user