Scheduling infrastructure for absolutely everyone.
fix: managed type url in orgs (#14698)
Udit Takkarc0f8a355e303
diff --git a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsxindex e7939e34563..24488c5b7cd 100644--- a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx+++ b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx@@ -1,6 +1,7 @@import { useAutoAnimate } from "@formkit/auto-animate/react";import type { Props } from "react-select";+import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";import { classNames } from "@calcom/lib";import { WEBSITE_URL } from "@calcom/lib/constants";import { useLocale } from "@calcom/lib/hooks/useLocale";@@ -34,7 +35,10 @@ export const ChildrenEventTypeSelect = ({onChange: (value: readonly ChildrenEventType[]) => void;}) => {const { t } = useLocale();+ const orgBranding = useOrgBranding();+const [animationRef] = useAutoAnimate<HTMLUListElement>();+ const domain = orgBranding?.fullDomain ?? WEBSITE_URL;return (<>@@ -105,7 +109,7 @@ export const ChildrenEventTypeSelect = ({color="secondary"target="_blank"variant="icon"- href={`${WEBSITE_URL}/${children.owner?.username}/${children.slug}`}+ href={`${domain}/${children.owner?.username}/${children.slug}`}StartIcon="external-link"/></Tooltip>