diff --git a/core/app/[locale]/(default)/account/page.tsx b/core/app/[locale]/(default)/account/page.tsx index 83c18c7a3c..9b78d537bf 100644 --- a/core/app/[locale]/(default)/account/page.tsx +++ b/core/app/[locale]/(default)/account/page.tsx @@ -6,6 +6,8 @@ import { ReactNode } from 'react'; import { Link } from '~/components/link'; import { AccountNotification } from './_components/account-notification'; +import { auth } from '~/auth'; +import { redirect } from 'next/navigation'; interface AccountItem { children: ReactNode; @@ -37,9 +39,8 @@ export async function generateMetadata() { }; } -export default function Account() { +const AccountComponent = () => { const t = useTranslations('Account.Home'); - return (