Scheduling infrastructure for absolutely everyone.
chore: small changes for platform booker embed (#18159)
Morgan851d96423b27
diff --git a/packages/features/bookings/components/event-meta/Members.tsx b/packages/features/bookings/components/event-meta/Members.tsxindex ef9bcb76a66..ad2c0207f1e 100644--- a/packages/features/bookings/components/event-meta/Members.tsx+++ b/packages/features/bookings/components/event-meta/Members.tsx@@ -39,11 +39,12 @@ export const EventMembers = ({ schedulingType, users, profile, entity }: EventMe: [{// We don't want booker to be able to see the list of other users or teams inside the embed- href: isEmbed- ? null- : entity.teamSlug- ? getTeamUrlSync({ orgSlug: entity.orgSlug, teamSlug: entity.teamSlug })- : getBookerBaseUrlSync(entity.orgSlug),+ href:+ isEmbed || isPlatform+ ? null+ : entity.teamSlug+ ? getTeamUrlSync({ orgSlug: entity.orgSlug, teamSlug: entity.teamSlug })+ : getBookerBaseUrlSync(entity.orgSlug),image: entity.logoUrl ?? profile.image ?? "",alt: entity.name ?? profile.name ?? "",title: entity.name ?? profile.name ?? "",diff --git a/packages/platform/atoms/booker-embed/BookerEmbed.tsx b/packages/platform/atoms/booker-embed/BookerEmbed.tsxindex 2dffe6052e1..ca5594d79e9 100644--- a/packages/platform/atoms/booker-embed/BookerEmbed.tsx+++ b/packages/platform/atoms/booker-embed/BookerEmbed.tsx@@ -6,12 +6,15 @@ import { BookerPlatformWrapper } from "../booker/BookerPlatformWrapper";import { CalProvider } from "../cal-provider/CalProvider";export const BookerEmbed = (- props: BookerPlatformWrapperAtomPropsForIndividual | BookerPlatformWrapperAtomPropsForTeam+ props:+ | (BookerPlatformWrapperAtomPropsForIndividual & { organizationId?: undefined })+ | (BookerPlatformWrapperAtomPropsForTeam & { organizationId?: number })) => {return (<CalProviderclientId={import.meta.env.VITE_BOOKER_EMBED_OAUTH_CLIENT_ID}isEmbed={true}+ organizationId={props?.organizationId}options={{apiUrl: import.meta.env.VITE_BOOKER_EMBED_API_URL,}}>diff --git a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx b/packages/platform/atoms/booker/BookerPlatformWrapper.tsxindex e4a16288701..a922e9c101b 100644--- a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx+++ b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx@@ -132,7 +132,9 @@ export const BookerPlatformWrapper = (setSelectedDuration(props.duration ?? null);}, [props.duration]);- setOrg(props.entity?.orgSlug ?? null);+ useEffect(() => {+ setOrg(props.entity?.orgSlug ?? null);+ }, [props.entity?.orgSlug]);const isDynamic = useMemo(() => {return getUsernameList(username ?? "").length > 1;diff --git a/packages/platform/atoms/src/components/atoms-wrapper.tsx b/packages/platform/atoms/src/components/atoms-wrapper.tsxindex 70f7fc548dc..dd8548c9352 100644--- a/packages/platform/atoms/src/components/atoms-wrapper.tsx+++ b/packages/platform/atoms/src/components/atoms-wrapper.tsx@@ -16,7 +16,7 @@ export const AtomsWrapper = ({return (<divdir={options?.readingDirection ?? "ltr"}- className={classNames(`${CALCOM_ATOMS_WRAPPER_CLASS} m-0 w-auto p-0`, customClassName)}>+ className={classNames(`${CALCOM_ATOMS_WRAPPER_CLASS} m-0 w-auto bg-transparent p-0`, customClassName)}>{children}</div>);