mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
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.
30 lines
797 B
TypeScript
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>
|
|
);
|
|
}
|