diff --git a/src/app/(app)/dashboard/page.tsx b/src/app/(app)/dashboard/page.tsx index 312933f..370ca2d 100644 --- a/src/app/(app)/dashboard/page.tsx +++ b/src/app/(app)/dashboard/page.tsx @@ -372,61 +372,32 @@ export default function DashboardPage() { })} -
- {/* Last events */} -
-

Dernières activités

-
- {(["BREASTFEED", "BOTTLE", "DIAPER_WET", "DIAPER_STOOL", "NAP"] as EventType[]).map((t) => { - const last = lastByType[t]; - const cfg = EVENT_CONFIG[t]; - return ( -
-
- -
-
-
{cfg.label}
- {last && getEventSummary(last) && ( -
{getEventSummary(last)}
- )} -
-
- {last ? formatTimeAgo(new Date(last.startedAt)) : "—"} -
-
- ); - })} -
-
- - {/* Quick log */} -
- {QUICK_LOG_GROUPS.map((group) => ( -
-

{group.label}

-
- {group.types.map((type) => { - const cfg = EVENT_CONFIG[type]; - return ( - - ); - })} -
+ {/* Quick log */} +
+ {QUICK_LOG_GROUPS.map((group) => ( +
+

{group.label}

+
+ {group.types.map((type) => { + const cfg = EVENT_CONFIG[type]; + return ( + + ); + })}
- ))} -
+
+ ))}
{/* Event templates */} diff --git a/src/components/event-modal.tsx b/src/components/event-modal.tsx index ce508a7..4100e7e 100644 --- a/src/components/event-modal.tsx +++ b/src/components/event-modal.tsx @@ -384,7 +384,7 @@ export function EventModal({ type, babyId, onClose, onSaved, initialEvent }: Pro const segmentInactive = "border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-slate-300"; return ( -
+