Files
HealthLog/src/components/settings/dashboard-section.tsx
T
Marc-André Bombeck c0065437a7 refactor(settings): move unit-system and global injection-site exclusions to Account
The unit-system selector and the app-wide injection-site exclusions are
personal account preferences, not dashboard-layout controls. Move both
cards from the Dashboard settings section to the Account section, next to
the profile. The persistence path is unchanged — same endpoints, query
keys, mutation hooks, and labels; only the render location moves. The
Dashboard section keeps the layout/widget controls.
2026-06-04 19:13:47 +02:00

30 lines
797 B
TypeScript

"use client";
import { DashboardLayoutSection } from "@/components/settings/dashboard-layout-section";
import { useTranslations } from "@/lib/i18n/context";
export function DashboardSection() {
const { t } = useTranslations();
return (
<section
aria-labelledby="settings-section-dashboard-title"
className="space-y-6"
>
<header className="space-y-1">
<h1
id="settings-section-dashboard-title"
className="text-2xl font-semibold tracking-tight"
>
{t("settings.sections.dashboard.title")}
</h1>
<p className="text-muted-foreground text-sm">
{t("settings.sections.dashboard.description")}
</p>
</header>
<DashboardLayoutSection id="dashboard-layout" />
</section>
);
}