diff --git a/apps/web/app/future/settings/(settings)/my-account/appearance/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/appearance/page.tsx
similarity index 100%
rename from apps/web/app/future/settings/(settings)/my-account/appearance/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/appearance/page.tsx
diff --git a/apps/web/app/future/settings/(settings)/my-account/calendars/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/calendars/page.tsx
similarity index 100%
rename from apps/web/app/future/settings/(settings)/my-account/calendars/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/calendars/page.tsx
diff --git a/apps/web/app/future/settings/(settings)/my-account/conferencing/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/conferencing/page.tsx
similarity index 100%
rename from apps/web/app/future/settings/(settings)/my-account/conferencing/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/conferencing/page.tsx
diff --git a/apps/web/app/future/settings/(settings)/my-account/general/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/general/page.tsx
similarity index 78%
rename from apps/web/app/future/settings/(settings)/my-account/general/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/general/page.tsx
index c6ef48a09bc118..a53fd802ef1637 100644
--- a/apps/web/app/future/settings/(settings)/my-account/general/page.tsx
+++ b/apps/web/app/settings/(settings-layout)/my-account/general/page.tsx
@@ -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 (
-
+
);
};
diff --git a/apps/web/app/future/settings/(settings)/my-account/out-of-office/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/out-of-office/page.tsx
similarity index 100%
rename from apps/web/app/future/settings/(settings)/my-account/out-of-office/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/out-of-office/page.tsx
diff --git a/apps/web/app/future/settings/(settings)/my-account/profile/page.tsx b/apps/web/app/settings/(settings-layout)/my-account/profile/page.tsx
similarity index 100%
rename from apps/web/app/future/settings/(settings)/my-account/profile/page.tsx
rename to apps/web/app/settings/(settings-layout)/my-account/profile/page.tsx
diff --git a/apps/web/modules/settings/my-account/general-view.tsx b/apps/web/modules/settings/my-account/general-view.tsx
index da82bbecc858e3..2902ee8a5fcd94 100644
--- a/apps/web/modules/settings/my-account/general-view.tsx
+++ b/apps/web/modules/settings/my-account/general-view.tsx
@@ -68,9 +68,14 @@ interface GeneralViewProps {
localeProp: string;
user: RouterOutputs["viewer"]["me"];
travelSchedules: RouterOutputs["viewer"]["getTravelSchedules"];
+ revalidatePage: GeneralQueryViewProps["revalidatePage"];
}
-const GeneralQueryView = () => {
+type GeneralQueryViewProps = {
+ revalidatePage: () => Promise;
+};
+
+const GeneralQueryView = ({ revalidatePage }: GeneralQueryViewProps) => {
const { t } = useLocale();
const { data: user, isPending } = trpc.viewer.me.useQuery();
@@ -82,10 +87,17 @@ const GeneralQueryView = () => {
if (!user) {
throw new Error(t("something_went_wrong"));
}
- return ;
+ return (
+
+ );
};
-const GeneralView = ({ localeProp, user, travelSchedules }: GeneralViewProps) => {
+const GeneralView = ({ localeProp, user, travelSchedules, revalidatePage }: GeneralViewProps) => {
const utils = trpc.useContext();
const {
t,
@@ -105,6 +117,7 @@ const GeneralView = ({ localeProp, user, travelSchedules }: GeneralViewProps) =>
if (res.locale) {
window.calNewLocale = res.locale;
}
+ await revalidatePage();
},
onError: () => {
showToast(t("error_updating_settings"), "error");
@@ -177,7 +190,7 @@ const GeneralView = ({ localeProp, user, travelSchedules }: GeneralViewProps) =>