Refactor: renamed AccountForm to UserSettingsForm and update related actions and translations
This commit is contained in:
@@ -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>
|
||||
}>
|
||||
|
||||
Reference in New Issue
Block a user