perf: use server fetched data in instant-meeting and private booking pages (#21424)
* remove useEvent hook * refactor * use repository functions * remove trpc event * wip * fix * remove * fix * revert some files * revert Embed * revert useEvent hook * fix * fix * revert * refactor
This commit is contained in:
1 parent
6d970d0b57
commit
1710e30719
4 files changed
+44
-27
No files matched your search
@@ -18,11 +18,13 @@ export default function Type({
|
||||
duration,
|
||||
hashedLink,
|
||||
durationConfig,
|
||||
eventData,
|
||||
}: PageProps) {
|
||||
return (
|
||||
<BookingPageErrorBoundary>
|
||||
<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>
|
||||
<Booker
|
||||
eventData={eventData}
|
||||
username={user}
|
||||
eventSlug={slug}
|
||||
bookingData={booking}
|
||||
|
||||
+12
-1
@@ -12,13 +12,24 @@ import BookingPageErrorBoundary from "@components/error/BookingPageErrorBoundary
|
||||
|
||||
export type Props = inferSSRProps<typeof getServerSideProps> & EmbedProps;
|
||||
|
||||
function Type({ slug, user, booking, isEmbed, isBrandingHidden, entity, eventTypeId, duration }: Props) {
|
||||
function Type({
|
||||
slug,
|
||||
user,
|
||||
booking,
|
||||
isEmbed,
|
||||
isBrandingHidden,
|
||||
entity,
|
||||
eventTypeId,
|
||||
duration,
|
||||
eventData,
|
||||
}: Props) {
|
||||
return (
|
||||
<BookingPageErrorBoundary>
|
||||
<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>
|
||||
<Booker
|
||||
username={user}
|
||||
eventSlug={slug}
|
||||
eventData={eventData}
|
||||
bookingData={booking}
|
||||
hideBranding={isBrandingHidden}
|
||||
isTeamEvent
|
||||
|
||||
Reference in new issue
Block a user