Refactor: renamed AccountForm to UserSettingsForm and update related actions and translations

This commit is contained in:
Knee Cola
2025-11-18 12:52:43 +01:00
parent b03f0574cd
commit be5d5074fe
8 changed files with 282 additions and 52 deletions

View File

@@ -1,15 +1,15 @@
import { FC, Suspense } from 'react';
import { Main } from '@/app/ui/Main';
import { AccountForm, AccountFormSkeleton } from '@/app/ui/AccountForm';
import { getUserProfile } from '@/app/lib/actions/userProfileActions';
import { UserSettingsForm as UserSettingsForm, UserSettingsFormSkeleton } from '@/app/ui/AppSettingsForm';
import { getUserSettings } from '@/app/lib/actions/userSettingsActions';
const AccountPage: FC = async () => {
const profile = await getUserProfile();
const userSettings = await getUserSettings();
return (
<Main>
<div className="flex flex-col items-center">
<AccountForm profile={profile} />
<UserSettingsForm userSettings={userSettings} />
</div>
</Main>
);
@@ -21,7 +21,7 @@ const Page: FC = () => {
<Main>
<div className="flex flex-col items-center">
<div className="h-8 w-48 skeleton mb-4"></div>
<AccountFormSkeleton />
<UserSettingsFormSkeleton />
</div>
</Main>
}>