Scheduling infrastructure for absolutely everyone.
chore: clean up `<HeadSeo>` components where not needed (#18731)
Benny Joo78a6963cd932
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsxindex 5eca84f339f..a230107db33 100644--- a/apps/web/modules/bookings/views/bookings-single-view.tsx+++ b/apps/web/modules/bookings/views/bookings-single-view.tsx@@ -19,7 +19,6 @@ import type { nameObjectSchema } from "@calcom/core/event";import { getEventName } from "@calcom/core/event";import type { ConfigType } from "@calcom/dayjs";import dayjs from "@calcom/dayjs";-import { getOrgFullOrigin } from "@calcom/ee/organizations/lib/orgDomains";import {useEmbedNonStylesConfig,useIsBackgroundTransparent,@@ -61,7 +60,6 @@ import {showToast,EmptyScreen,Icon,- HeadSeo,} from "@calcom/ui";import CancelBooking from "@calcom/web/components/booking/CancelBooking";import EventReservationSchema from "@calcom/web/components/schemas/EventReservationSchema";@@ -109,7 +107,7 @@ export default function Success(props: PageProps) {const routerQuery = useRouterQuery();const pathname = usePathname();const searchParams = useCompatSearchParams();- const { eventType, bookingInfo, requiresLoginToUpdate, orgSlug, rescheduledToUid } = props;+ const { eventType, bookingInfo, requiresLoginToUpdate, rescheduledToUid } = props;const {allRemainingBookings,@@ -348,10 +346,6 @@ export default function Success(props: PageProps) {brandColor: props.profile.brandColor,darkBrandColor: props.profile.darkBrandColor,});- const title = t(- `booking_${needsConfirmation ? "submitted" : "confirmed"}${props.recurringBookings ? "_recurring" : ""}`- );-const locationToDisplay = getSuccessPageLocationMessage(locationVideoCallUrl ? locationVideoCallUrl : location,t,@@ -440,7 +434,6 @@ export default function Success(props: PageProps) {</Link></div>)}- <HeadSeo origin={getOrgFullOrigin(orgSlug)} title={title} description={title} /><BookingPageTagManagereventType={{ ...eventType, metadata: eventTypeMetaDataSchemaWithTypedApps.parse(eventType.metadata) }}/>diff --git a/apps/web/modules/d/[link]/d-type-view.tsx b/apps/web/modules/d/[link]/d-type-view.tsxindex 46f73150742..d4b781b162d 100644--- a/apps/web/modules/d/[link]/d-type-view.tsx+++ b/apps/web/modules/d/[link]/d-type-view.tsx@@ -2,7 +2,6 @@import { Booker } from "@calcom/atoms/monorepo";import { getBookerWrapperClasses } from "@calcom/features/bookings/Booker/utils/getBookerWrapperClasses";-import { BookerSeo } from "@calcom/features/bookings/components/BookerSeo";import { type PageProps } from "@lib/d/[link]/[slug]/getServerSideProps";@@ -20,13 +19,6 @@ export default function Type({}: PageProps) {return (<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>- <BookerSeo- username={user}- eventSlug={slug}- rescheduleUid={booking?.uid}- hideBranding={isBrandingHidden}- entity={entity}- /><Bookerusername={user}eventSlug={slug}diff --git a/apps/web/modules/team/team-view.tsx b/apps/web/modules/team/team-view.tsxindex 59feba41e73..70478312835 100644--- a/apps/web/modules/team/team-view.tsx+++ b/apps/web/modules/team/team-view.tsx@@ -12,7 +12,6 @@ import { usePathname } from "next/navigation";import { useEffect } from "react";import { sdkActionManager, useIsEmbed } from "@calcom/embed-core/embed-iframe";-import { getOrgFullOrigin } from "@calcom/features/ee/organizations/lib/orgDomains";import EventTypeDescription from "@calcom/features/eventtypes/components/EventTypeDescription";import { getOrgOrTeamAvatar } from "@calcom/lib/defaultAvatarImage";import { useLocale } from "@calcom/lib/hooks/useLocale";@@ -20,7 +19,7 @@ import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";import useTheme from "@calcom/lib/hooks/useTheme";import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";import { teamMetadataSchema } from "@calcom/prisma/zod-utils";-import { Avatar, Button, HeadSeo, UnpublishedEntity, UserAvatarGroup } from "@calcom/ui";+import { Avatar, Button, UnpublishedEntity, UserAvatarGroup } from "@calcom/ui";import { useToggleQuery } from "@lib/hooks/useToggleQuery";import type { getServerSideProps } from "@lib/team/[slug]/getServerSideProps";@@ -29,14 +28,7 @@ import type { inferSSRProps } from "@lib/types/inferSSRProps";import Team from "@components/team/screens/Team";export type PageProps = inferSSRProps<typeof getServerSideProps>;-function TeamPage({- team,- considerUnpublished,- markdownStrippedBio,- isValidOrgDomain,- currentOrgDomain,- isSEOIndexable,-}: PageProps) {+function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {useTheme(team.theme);const routerQuery = useRouterQuery();const pathname = usePathname();@@ -165,22 +157,6 @@ function TeamPage({return (<>- <HeadSeo- origin={getOrgFullOrigin(currentOrgDomain)}- title={teamName}- description={teamName}- meeting={{- title: markdownStrippedBio,- profile: {- name: `${team.name}`,- image: profileImageSrc,- },- }}- nextSeoProps={{- nofollow: !isSEOIndexable,- noindex: !isSEOIndexable,- }}- /><main className="dark:bg-darkgray-50 bg-subtle mx-auto max-w-3xl rounded-md px-4 pb-12 pt-12"><div className="mx-auto mb-8 max-w-3xl text-center"><div className="relative">