Files
evidencija-rezija/app/[locale]/account/page.tsx
Knee Cola 513e78e8f1 Refactor account page to use icon in form title
- 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>
2025-11-17 18:44:24 +01:00

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;