Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused layouts: MainLayout & MainLayoutAppDir #18498

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions apps/web/app/enterprise/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { _generateMetadata } from "app/_utils";
import { WithLayout } from "app/layoutHOC";

import { getLayout } from "@calcom/features/MainLayoutAppDir";

import EnterprisePage from "@components/EnterprisePage";

export const generateMetadata = async () =>
Expand All @@ -11,4 +9,4 @@ export const generateMetadata = async () =>
(t) => t("create_your_org_description")
);

export default WithLayout({ getLayout, Page: EnterprisePage })<"P">;
export default WithLayout({ Page: EnterprisePage })<"P">;
6 changes: 3 additions & 3 deletions apps/web/components/EnterprisePage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { ShellMain } from "@calcom/features/shell/Shell";
import Shell from "@calcom/features/shell/Shell";
import { UpgradeTip } from "@calcom/features/tips";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button, ButtonGroup, Icon } from "@calcom/ui";
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function EnterprisePage() {
];
return (
<div>
<ShellMain heading={t("enterprise")} subtitle={t("enterprise_description")}>
<Shell heading={t("enterprise")} subtitle={t("enterprise_description")}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnterprisePage was basically doing

When it just could do

<UpgradeTip
plan="enterprise"
title={t("create_your_org")}
Expand All @@ -63,7 +63,7 @@ export default function EnterprisePage() {
}>
<>Create Org</>
</UpgradeTip>
</ShellMain>
</Shell>
</div>
);
}
17 changes: 0 additions & 17 deletions packages/features/MainLayout.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions packages/features/MainLayoutAppDir.tsx

This file was deleted.

Loading