fix: remove duplicate header in attributes page (#17985)

This commit is contained in:
Benny Joo authored and GitHub committed 2024-12-03 20:32:56 +00:00
1 parent 145449e7b4
commit 6eadadec73
5 files changed
+54 -105

No files matched your search

@@ -1,8 +1,6 @@
import { _generateMetadata, getFixedT } from "app/_utils";
import { _generateMetadata } from "app/_utils";
import OrgAttributesEditPage from "@calcom/ee/organizations/pages/settings/attributes/attributes-edit-view";
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir";
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
export const generateMetadata = async () =>
await _generateMetadata(
@@ -10,15 +8,4 @@ export const generateMetadata = async () =>
(t) => t("edit_attribute_description")
);
const Page = async () => {
const session = await getServerSessionForAppDir();
const t = await getFixedT(session?.user.locale || "en");
return (
<SettingsHeader title={t("attribute")} description={t("edit_attribute_description")}>
<OrgAttributesEditPage />
</SettingsHeader>
);
};
export default Page;
export default OrgAttributesEditPage;
@@ -1,8 +1,6 @@
import { _generateMetadata, getFixedT } from "app/_utils";
import { _generateMetadata } from "app/_utils";
import OrgAttributesCreatePage from "@calcom/ee/organizations/pages/settings/attributes/attributes-create-view";
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir";
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
export const generateMetadata = async () =>
await _generateMetadata(
@@ -10,15 +8,4 @@ export const generateMetadata = async () =>
(t) => t("create_attribute_description")
);
const Page = async () => {
const session = await getServerSessionForAppDir();
const t = await getFixedT(session?.user.locale || "en");
return (
<SettingsHeader title={t("attribute")} description={t("create_attribute_description")}>
<OrgAttributesCreatePage />
</SettingsHeader>
);
};
export default Page;
export default OrgAttributesCreatePage;