Skip to content

Commit

Permalink
cleanup: remove-headseo-from-migrated-app-router-components (#18576)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Jan 10, 2025
1 parent 6582854 commit 0a08680
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/web/components/EnterprisePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function EnterprisePage() {
];
return (
<div>
<Shell heading={t("enterprise")} subtitle={t("enterprise_description")}>
<Shell heading={t("enterprise")} subtitle={t("enterprise_description")} withoutSeo={true}>
<UpgradeTip
plan="enterprise"
title={t("create_your_org")}
Expand Down
1 change: 1 addition & 0 deletions apps/web/modules/availability/availability-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export default function AvailabilityPage({ currentOrg }: PageProps) {
title={t("availability")}
description={t("configure_availability")}
hideHeadingOnMobile
withoutSeo={true}
withoutMain={false}
CTA={
<div className="flex gap-2">
Expand Down
1 change: 1 addition & 0 deletions apps/web/modules/bookings/views/bookings-listing-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ function BookingsStatusLayout({ children }: { children: React.ReactNode }) {
return (
<Shell
withoutMain={false}
withoutSeo={true}
hideHeadingOnMobile
heading={t("bookings")}
subtitle={t("bookings_description")}
Expand Down
1 change: 1 addition & 0 deletions apps/web/modules/insights/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default function InsightsLayout({ children }: { children: React.ReactNode
<div>
<Shell
withoutMain={false}
withoutSeo={true}
heading={t("insights")}
subtitle={t("insights_subtitle")}
title={t("insights")}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/modules/more/more-page-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
export default function MorePage() {
const { t } = useLocale();
return (
<Shell hideHeadingOnMobile>
<Shell hideHeadingOnMobile withoutSeo={true}>
<div className="max-w-screen-lg">
<MobileNavigationMoreItems />
<p className="text-subtle mt-6 text-xs leading-tight md:hidden">{t("more_page_footer")}</p>
Expand Down
8 changes: 7 additions & 1 deletion apps/web/modules/settings/platform/billing/billing-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ export default function PlatformBillingUpgrade() {
if (!isPlatformUser)
return (
<div>
<Shell isPlatformUser={true} hideHeadingOnMobile withoutMain={false} SidebarContainer={<></>}>
<Shell
withoutSeo={true}
isPlatformUser={true}
hideHeadingOnMobile
withoutMain={false}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
Expand All @@ -59,6 +64,7 @@ export default function PlatformBillingUpgrade() {
title={t("platform_billing")}
hideHeadingOnMobile
withoutMain={false}
withoutSeo={true}
subtitle={t("manage_billing_description")}
isPlatformUser={true}>
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function EditOAuthClient() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell title={t("oAuth_client_updation_form")} isPlatformUser={true}>
<Shell withoutSeo={true} 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">
Expand Down Expand Up @@ -127,7 +127,12 @@ export default function EditOAuthClient() {

return (
<div>
<Shell isPlatformUser={true} hideHeadingOnMobile withoutMain={false} SidebarContainer={<></>}>
<Shell
withoutSeo={true}
isPlatformUser={true}
hideHeadingOnMobile
withoutMain={false}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function EditOAuthClientWebhooks() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell title={t("webhook_update_form")} isPlatformUser={true}>
<Shell withoutSeo={true} 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">
Expand Down Expand Up @@ -126,7 +126,12 @@ export default function EditOAuthClientWebhooks() {

return (
<div>
<Shell isPlatformUser={true} hideHeadingOnMobile withoutMain={false} SidebarContainer={<></>}>
<Shell
withoutSeo={true}
isPlatformUser={true}
hideHeadingOnMobile
withoutMain={false}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function CreateOAuthClient() {
if (isPlatformUser && isPaidUser) {
return (
<div>
<Shell title={t("oAuth_client_creation_form")} isPlatformUser={true}>
<Shell title={t("oAuth_client_creation_form")} isPlatformUser={true} withoutSeo={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">
Expand All @@ -85,7 +85,12 @@ export default function CreateOAuthClient() {

return (
<div>
<Shell isPlatformUser={true} hideHeadingOnMobile withoutMain={false} SidebarContainer={<></>}>
<Shell
withoutSeo={true}
isPlatformUser={true}
hideHeadingOnMobile
withoutMain={false}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ 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">
Expand Down
2 changes: 2 additions & 0 deletions apps/web/modules/settings/platform/platform-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function Platform() {
title={t("platform")}
description={t("platform_description")}
hideHeadingOnMobile
withoutSeo={true}
withoutMain={false}
isPlatformUser={true}>
<HelpCards />
Expand Down Expand Up @@ -112,6 +113,7 @@ export default function Platform() {
isPlatformUser={true}
hideHeadingOnMobile
withoutMain={false}
withoutSeo={true}
SidebarContainer={<></>}>
<NoPlatformPlan />
</Shell>
Expand Down
1 change: 1 addition & 0 deletions apps/web/modules/teams/teams-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Teams(props: PageProps) {
return (
<Shell
withoutMain={false}
withoutSeo={true}
heading={t("teams")}
subtitle={t("create_manage_teams_collaborative")}
title={t("teams")}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/modules/upgrade/upgrade-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function UpgradePage() {
const doesUserHaveOrgToUpgrade = trpc.viewer.organizations.checkIfOrgNeedsUpgrade.useQuery();

return (
<Shell hideHeadingOnMobile>
<Shell hideHeadingOnMobile withoutSeo={true}>
<div className="max-w-screen-lg">
{doesUserHaveOrgToUpgrade.data ? (
<EmptyScreen
Expand Down
2 changes: 1 addition & 1 deletion packages/features/ee/workflows/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function WorkflowsPage({ filteredList }: PageProps) {
});

return (
<Shell withoutMain>
<Shell withoutMain withoutSeo={true}>
<LicenseRequired>
<ShellMain
heading={t("workflows")}
Expand Down
2 changes: 1 addition & 1 deletion packages/features/ee/workflows/pages/workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function WorkflowPage({
});

return session.data ? (
<Shell withoutMain backPath="/workflows">
<Shell withoutSeo={true} withoutMain backPath="/workflows">
<LicenseRequired>
<Form
form={form}
Expand Down

0 comments on commit 0a08680

Please sign in to comment.