mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(insights): ring tiles use TileHeader
The wellness score tiles and the cycle ring tile drew their own icon and title row instead of TileHeader; the skeleton of the score tile was a hand-rolled card shell and now composes Card.
This commit is contained in:
1 parent
f2af0c9650
commit
eebe4019af
2 files changed
+12
-15
No files matched your search
@@ -10,6 +10,7 @@ import { useTranslations } from "@/lib/i18n/context";
|
||||
import { CycleRing } from "./cycle-ring";
|
||||
import { PHASE_HUE } from "./phase-tokens";
|
||||
import { useCycleRingCalendar } from "./use-cycle";
|
||||
import { TileHeader } from "@/components/insights/tile-header";
|
||||
|
||||
/**
|
||||
* v1.15.3 — the compact cycle ring as a WELLNESS-STRIP element.
|
||||
@@ -107,12 +108,11 @@ export function CycleRingTile({ className }: { className?: string }) {
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="text-foreground flex items-center gap-2">
|
||||
<Droplets className="h-5 w-5 shrink-0" aria-hidden="true" />
|
||||
<span className="truncate text-base leading-none font-semibold">
|
||||
{t("cycle.wellnessRing.label")}
|
||||
</span>
|
||||
</div>
|
||||
<TileHeader
|
||||
icon={Droplets}
|
||||
title={t("cycle.wellnessRing.label")}
|
||||
titleClassName="truncate"
|
||||
/>
|
||||
<div className="flex flex-col items-center gap-1.5">
|
||||
<CycleRing
|
||||
dayOfCycle={verdict.dayOfCycle}
|
||||
|
||||
Reference in new issue
Block a user