Files
evidencija-rezija/app/[locale]/account/page.tsx
Knee Cola 795d9c690b Rename address field to street and change to text input
Changes the user settings address field to street with the following updates:
- Renames database field from 'address' to 'street' in UserSettings type
- Changes form input from textarea to single-line text input
- Updates validation logic and error messages
- Updates translations in both Croatian and English
- Removes deprecated AppSettingsForm component

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 15:00:12 +01:00

34 lines
940 B
TypeScript

import { FC, Suspense } from 'react';
import { Main } from '@/app/ui/Main';
import { UserSettingsForm as UserSettingsForm, UserSettingsFormSkeleton } from '@/app/ui/UserSettingsForm';
import { getUserSettings } from '@/app/lib/actions/userSettingsActions';
const AccountPage: FC = async () => {
const userSettings = await getUserSettings();
return (
<Main>
<div className="flex flex-col items-center">
<UserSettingsForm userSettings={userSettings} />
</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>
<UserSettingsFormSkeleton />
</div>
</Main>
}>
<AccountPage />
</Suspense>
);
};
export default Page;