diff --git a/apps/web/pages/team/[slug].tsx b/apps/web/pages/team/[slug].tsx index 41f4046447..c6e68d5310 100644 --- a/apps/web/pages/team/[slug].tsx +++ b/apps/web/pages/team/[slug].tsx @@ -5,7 +5,6 @@ import { usePathname } from "next/navigation"; import { useEffect } from "react"; import { sdkActionManager, useIsEmbed } from "@calcom/embed-core/embed-iframe"; -import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider"; import { orgDomainConfig } from "@calcom/features/ee/organizations/lib/orgDomains"; import EventTypeDescription from "@calcom/features/eventtypes/components/EventTypeDescription"; import { getFeatureFlagMap } from "@calcom/features/flags/server/utils"; @@ -33,7 +32,13 @@ import { ssrInit } from "@server/lib/ssr"; export type PageProps = inferSSRProps; -function TeamPage({ team, isUnpublished, markdownStrippedBio, isValidOrgDomain }: PageProps) { +function TeamPage({ + team, + isUnpublished, + markdownStrippedBio, + isValidOrgDomain, + currentOrgDomain, +}: PageProps) { useTheme(team.theme); const routerQuery = useRouterQuery(); const pathname = usePathname(); @@ -44,7 +49,6 @@ function TeamPage({ team, isUnpublished, markdownStrippedBio, isValidOrgDomain } const teamName = team.name || "Nameless Team"; const isBioEmpty = !team.bio || !team.bio.replace("


", "").length; const metadata = teamMetadataSchema.parse(team.metadata); - const orgBranding = useOrgBranding(); useEffect(() => { telemetry.event( @@ -182,8 +186,8 @@ function TeamPage({ team, isUnpublished, markdownStrippedBio, isValidOrgDomain } trpcState: ssr.dehydrate(), markdownStrippedBio, isValidOrgDomain, + currentOrgDomain, }, } as const; };