Revert "remove pages router and use app router (#16793)" (#17002)

This reverts commit 664a92a1d0.
This commit is contained in:
Benny Joo authored and GitHub committed 2024-10-08 15:00:43 -03:00
1 parent f5dbdae4a9
commit 8f91ffe692
14 files changed
+176 -25

No files matched your search

@@ -1,6 +1,5 @@
import { _generateMetadata } from "app/_utils";
import { getFixedT } from "app/_utils";
import { revalidatePath } from "next/cache";
import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir";
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
@@ -17,14 +16,9 @@ const Page = async () => {
const session = await getServerSessionForAppDir();
const t = await getFixedT(session?.user.locale || "en");
const revalidatePage = async () => {
"use server";
revalidatePath("settings/my-account/general");
};
return (
<SettingsHeader title={t("general")} description={t("general_description")} borderInShellHeader={true}>
<GeneralQueryView revalidatePage={revalidatePage} />
<GeneralQueryView />
</SettingsHeader>
);
};