- Remove redundant page heading from account page - Add AccountCircle icon to AccountForm title - Clean up unused account-page translations - Simplify account page component by moving title to form 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
877 B
TypeScript
34 lines
877 B
TypeScript
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';
|
|
|
|
const AccountPage: FC = async () => {
|
|
const profile = await getUserProfile();
|
|
|
|
return (
|
|
<Main>
|
|
<div className="flex flex-col items-center">
|
|
<AccountForm profile={profile} />
|
|
</div>
|
|
</Main>
|
|
);
|
|
};
|
|
|
|
const Page: FC = () => {
|
|
return (
|
|
<Suspense fallback={
|
|
<Main>
|
|
<div className="flex flex-col items-center">
|
|
<div className="h-8 w-48 skeleton mb-4"></div>
|
|
<AccountFormSkeleton />
|
|
</div>
|
|
</Main>
|
|
}>
|
|
<AccountPage />
|
|
</Suspense>
|
|
);
|
|
};
|
|
|
|
export default Page;
|