chore: Remove HeadSeo everywhere (#20272)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-03-21 14:24:53 -04:00
1 parent 78ddf71823
commit 4606fc6ace
28 files changed
+20 -356

No files matched your search

@@ -16,7 +16,6 @@ export default function Apps({ apps, category }: CategoryDataProps) {
<>
<Shell
isPublic
withoutSeo
backPath="/apps"
title={t("app_store")}
description={t("app_store_description")}
@@ -16,7 +16,7 @@ export default function Apps({ categories }: PageProps) {
const { t, isLocaleReady } = useLocale();
return (
<Shell isPublic large title={t("app_store")} description={t("app_store_description")} withoutSeo>
<Shell isPublic large title={t("app_store")} description={t("app_store_description")}>
<div className="text-md flex items-center gap-1 px-4 pb-3 pt-3 font-normal md:px-8 lg:px-0 lg:pt-0">
<Link
href="/apps"
@@ -11,7 +11,6 @@ const MembersPage: React.FC = () => {
withoutMain={false}
title={t("organization_members")}
description={t("organization_description")}
withoutSeo
subtitle={t("organization_description")}>
<MembersView />
</Shell>
+1 -1
View File
@@ -7,7 +7,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
export default function MorePage() {
const { t } = useLocale();
return (
<Shell withoutSeo={true}>
<Shell>
<div className="max-w-screen-lg">
<MobileNavigationMoreItems />
<p className="text-subtle mt-6 text-xs leading-tight md:hidden">{t("more_page_footer")}</p>
@@ -56,7 +56,7 @@ export default function PlatformBillingUpgrade() {
if (!isPlatformUser)
return (
<div>
<Shell withoutSeo={true} isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<Shell isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
@@ -68,7 +68,6 @@ export default function PlatformBillingUpgrade() {
heading={t("platform_billing")}
title={t("platform_billing")}
withoutMain={false}
withoutSeo={true}
subtitle={t("manage_billing_description")}
isPlatformUser={true}>
<>
@@ -68,7 +68,7 @@ export default function EditOAuthClient() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell withoutSeo={true} title={t("oAuth_client_updation_form")} isPlatformUser={true}>
<Shell title={t("oAuth_client_updation_form")} isPlatformUser={true}>
<div className="m-2 md:mx-14 md:mx-5">
<div className="border-subtle mx-auto block justify-between rounded-t-lg border px-4 py-6 sm:flex sm:px-6">
<div className="flex w-full flex-col">
@@ -116,7 +116,7 @@ export default function EditOAuthClient() {
return (
<div>
<Shell withoutSeo={true} isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<Shell isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
@@ -42,7 +42,7 @@ export default function EditOAuthClientWebhooks() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell withoutSeo={true} title={t("webhook_update_form")} isPlatformUser={true}>
<Shell title={t("webhook_update_form")} isPlatformUser={true}>
<div className="m-2 md:mx-5">
<div className="border-subtle mx-auto block justify-between rounded-t-lg border px-4 py-6 sm:flex sm:px-6">
<div className="flex w-full flex-col">
@@ -126,7 +126,7 @@ export default function EditOAuthClientWebhooks() {
return (
<div>
<Shell withoutSeo={true} isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<Shell isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
@@ -64,7 +64,7 @@ export default function CreateOAuthClient() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell title={t("oAuth_client_creation_form")} isPlatformUser={true} withoutSeo={true}>
<Shell title={t("oAuth_client_creation_form")} isPlatformUser={true}>
<div className="m-2 md:mx-5">
<div className="border-subtle mx-auto block justify-between rounded-t-lg border px-4 py-6 sm:flex sm:px-6">
<div className="flex w-full flex-col">
@@ -85,7 +85,7 @@ export default function CreateOAuthClient() {
return (
<div>
<Shell withoutSeo={true} isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<Shell isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
@@ -20,7 +20,6 @@ export default function PlatformPlans() {
<div>
<Shell
backPath
withoutSeo={true}
isPlatformUser={true}
heading={
<h1 className="mx-2 mt-4 text-center text-xl md:text-2xl">
@@ -71,7 +71,6 @@ export default function Platform() {
subtitle={t("platform_description")}
title={t("platform")}
description={t("platform_description")}
withoutSeo={true}
withoutMain={false}
isPlatformUser={true}>
<HelpCards />
@@ -89,7 +88,6 @@ export default function Platform() {
// hence we pass isPlatformUser boolean as prop
isPlatformUser={true}
withoutMain={false}
withoutSeo={true}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
-4
View File
@@ -151,10 +151,6 @@ vi.mock("@calcom/trpc/react", () => ({
},
}));
vi.mock("@calcom/ui/components/head-seo", () => ({
HeadSeo: vi.fn(),
}));
vi.mock("@calcom/ui/styles", () => ({
useCalcomTheme: vi.fn(),
}));
+1 -1
View File
@@ -30,7 +30,7 @@ export default function UpgradePage() {
const doesUserHaveOrgToUpgrade = trpc.viewer.organizations.checkIfOrgNeedsUpgrade.useQuery();
return (
<Shell withoutSeo={true}>
<Shell >
<div className="max-w-screen-lg">
{doesUserHaveOrgToUpgrade.data ? (
<EmptyScreen
@@ -3,7 +3,6 @@ import { describe, it, vi } from "vitest";
import { getOrgFullOrigin } from "@calcom/ee/organizations/lib/orgDomains";
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
import { HeadSeo } from "@calcom/ui/components/head-seo";
import UserPage from "./users-public-view";
@@ -56,7 +55,7 @@ function mockedUserPageComponentProps(props: Partial<React.ComponentProps<typeof
}
describe("UserPage Component", () => {
it("should render HeadSeo with correct props", () => {
it("should render with no throw", () => {
const mockData = {
props: mockedUserPageComponentProps({
entity: {
@@ -74,7 +73,6 @@ describe("UserPage Component", () => {
uid: "uid",
});
render(<UserPage {...mockData.props} />);
expect(HeadSeo).not.toHaveBeenCalled();
expect(() => render(<UserPage {...mockData.props} />)).not.toThrow();
});
});