chore: settings/my-account - remove pages router (#17056)
* remove pages router and use app router * fix page --------- Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
0b0fee3985
commit
42265021fe
14 files changed
+25
-176
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
+7
-1
@@ -1,5 +1,6 @@
|
||||
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";
|
||||
@@ -16,9 +17,14 @@ 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 />
|
||||
<GeneralQueryView revalidatePage={revalidatePage} />
|
||||
</SettingsHeader>
|
||||
);
|
||||
};
|
||||
File renamed without changes.
Reference in new issue
Block a user