fix(web): tDashboard is not defined — 補上 useTranslations('dashboard')
Some checks failed
E2E Health Check / e2e-health (push) Successful in 16s
CD Pipeline / build-and-deploy (push) Has been cancelled

ReferenceError 導致 web pod crash loop。
page.tsx 用了 tDashboard() 但沒宣告。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-02 13:17:32 +08:00
parent 73e8f8ab77
commit 1628f659e3

View File

@@ -23,6 +23,7 @@ import { AppLayout } from '@/components/layout'
export default function Home({ params }: { params: { locale: string } }) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const t = useTranslations()
const tDashboard = useTranslations('dashboard')
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const locale = params.locale