perf: don't fetch all the hosts #18319 followup (#19021)

* 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:
Somay Chauhan
2025-01-31 12:19:21 +02:00
committed by GitHub
parent 8d2dc0bbe5
commit 56cd9cef8b
10 changed files with 138 additions and 66 deletions
@@ -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>}