- Move user settings form to dedicated /account/settings route - Update PageHeader icon from Settings to AccountCircle for clarity - Update debug log labels in auth config for better readability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
950 B
TypeScript
34 lines
950 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 UserSettingsPage: 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>
|
|
}>
|
|
<UserSettingsPage />
|
|
</Suspense>
|
|
);
|
|
};
|
|
|
|
export default Page;
|