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>
This commit is contained in:
Knee Cola
2025-11-17 18:44:24 +01:00
parent 80f4c92755
commit 513e78e8f1
4 changed files with 2 additions and 11 deletions

View File

@@ -2,17 +2,13 @@ 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 { useTranslations } from 'next-intl';
import { getTranslations } from 'next-intl/server';
const AccountPage: FC = async () => {
const profile = await getUserProfile();
const t = await getTranslations('account-page');
return (
<Main>
<div className="flex flex-col items-center">
<h1 className="text-2xl font-bold mb-4">{t('heading')}</h1>
<AccountForm profile={profile} />
</div>
</Main>