feat: display org banner on personal event types (#14101)

* feat: display org banner on personal event types

* chore: add banner url

* fix: type error
This commit is contained in:
Udit Takkar
2024-03-19 14:20:40 +00:00
committed by GitHub
parent 0f1f0a29e6
commit d6605d6dfd
7 changed files with 9 additions and 2 deletions
@@ -93,6 +93,7 @@ async function getDynamicGroupPageProps(context: GetServerSidePropsContext) {
themeBasis: null,
bookingUid: bookingUid ? `${bookingUid}` : null,
rescheduleUid: rescheduleUid ? `${rescheduleUid}` : null,
orgBannerUrl: null,
},
};
}
@@ -182,6 +183,7 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
themeBasis: username,
bookingUid: bookingUid ? `${bookingUid}` : null,
rescheduleUid: rescheduleUid ? `${rescheduleUid}` : null,
orgBannerUrl: eventData?.owner?.profile?.organization?.bannerUrl ?? null,
},
};
}
@@ -28,6 +28,7 @@ export default function Type({
isSEOIndexable,
rescheduleUid,
eventData,
orgBannerUrl,
}: PageProps) {
const searchParams = useSearchParams();
@@ -50,6 +51,7 @@ export default function Type({
hideBranding={isBrandingHidden}
entity={eventData.entity}
durationConfig={eventData.metadata?.multipleDuration}
orgBannerUrl={orgBannerUrl}
/* TODO: Currently unused, evaluate it is needed-
* Possible alternative approach is to have onDurationChange.
*/