From c125a91cbbcb7ca7d746643ce430cce36aff55b9 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 21 Jun 2026 11:10:19 +0800 Subject: [PATCH] refactor: remove unused imports and simplify DashboardPage component --- web/components/dashboard-page.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/web/components/dashboard-page.tsx b/web/components/dashboard-page.tsx index f77b3c8..8771aca 100644 --- a/web/components/dashboard-page.tsx +++ b/web/components/dashboard-page.tsx @@ -1,12 +1,10 @@ "use client" import type { ReactNode } from "react" -import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { TableCell, TableRow } from "@/components/ui/table" import { useI18n } from "@/i18n/provider" -import { getPageTitleKey } from "@/lib/navigation" export function DashboardPage({ className, @@ -15,15 +13,8 @@ export function DashboardPage({ className?: string children: ReactNode }) { - const t = useI18n() - const pathname = usePathname() - const title = t(getPageTitleKey(pathname)) - return (
-
-

{title}

-
{children}
)