feat: fetch SEO data for booking pages in server (#17987)
* feat: fetch public event data for booking pages server-side * fix types * refactor * Replace the getPublicEvent with other smaller calls * Change username to teamSlug * Fixing types * Type checks * Pushing latest for Benny - this still has type errors * fix type checks * fill data for team pages too --------- Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
982a715c4b
commit
03704b2e73
5 files changed
+109
-9
No files matched your search
@@ -35,7 +35,7 @@ function Type({
|
||||
orgBannerUrl,
|
||||
}: PageProps) {
|
||||
const searchParams = useSearchParams();
|
||||
|
||||
const { profile, users, hidden, title } = eventData;
|
||||
return (
|
||||
<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>
|
||||
<BookerSeo
|
||||
@@ -44,6 +44,16 @@ function Type({
|
||||
rescheduleUid={rescheduleUid ?? undefined}
|
||||
hideBranding={isBrandingHidden}
|
||||
isSEOIndexable={isSEOIndexable ?? true}
|
||||
eventData={
|
||||
profile && users && title && hidden !== undefined
|
||||
? {
|
||||
profile,
|
||||
users,
|
||||
title,
|
||||
hidden,
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
entity={eventData.entity}
|
||||
bookingData={booking}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user