From 8a6450e854b8768dbed6553cf2cf3b9c0d207143 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Fri, 13 Dec 2024 02:36:47 -0500 Subject: [PATCH] chore: use getTranslate instead (#18148) --- .../(admin-layout)/admin/workspace-platforms/page.tsx | 8 ++------ .../organizations/domain-wide-delegation/page.tsx | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/web/app/settings/(admin-layout)/admin/workspace-platforms/page.tsx b/apps/web/app/settings/(admin-layout)/admin/workspace-platforms/page.tsx index ccf5f7cc14..a304d24f2b 100644 --- a/apps/web/app/settings/(admin-layout)/admin/workspace-platforms/page.tsx +++ b/apps/web/app/settings/(admin-layout)/admin/workspace-platforms/page.tsx @@ -1,7 +1,5 @@ -import { _generateMetadata } from "app/_utils"; -import { getFixedT } from "app/_utils"; +import { _generateMetadata, getTranslate } from "app/_utils"; -import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir"; import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired"; import WorkspacePlatformsPage from "@calcom/features/ee/organizations/pages/settings/admin/WorkspacePlatformPage"; import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; @@ -13,9 +11,7 @@ export const generateMetadata = async () => ); const Page = async () => { - const session = await getServerSessionForAppDir(); - - const t = await getFixedT(session?.user.locale || "en"); + const t = await getTranslate(); return ( diff --git a/apps/web/app/settings/(settings-layout)/organizations/domain-wide-delegation/page.tsx b/apps/web/app/settings/(settings-layout)/organizations/domain-wide-delegation/page.tsx index 70bdaece4b..5f72eaeec1 100644 --- a/apps/web/app/settings/(settings-layout)/organizations/domain-wide-delegation/page.tsx +++ b/apps/web/app/settings/(settings-layout)/organizations/domain-wide-delegation/page.tsx @@ -1,6 +1,5 @@ -import { _generateMetadata, getFixedT } from "app/_utils"; +import { _generateMetadata, getTranslate } from "app/_utils"; -import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir"; import DomainWideDelegationList from "@calcom/features/ee/organizations/pages/settings/domainWideDelegation"; import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; @@ -11,8 +10,7 @@ export const generateMetadata = async () => ); const Page = async () => { - const session = await getServerSessionForAppDir(); - const t = await getFixedT(session?.user.locale || "en"); + const t = await getTranslate(); return (