From 7e681e5a840e52e479e2b6916efbd6706b2912fb Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 20 Apr 2025 17:56:15 +0200 Subject: [PATCH] carnet panel dairy health --- components/carnet/notes-view.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/carnet/notes-view.tsx b/components/carnet/notes-view.tsx index de00f07c..5bd45716 100644 --- a/components/carnet/notes-view.tsx +++ b/components/carnet/notes-view.tsx @@ -85,7 +85,7 @@ export const NotesView: React.FC = ({ onNoteSelect, currentFolde const dateMatch = note.title.match(/^(\d{4}-\d{2}-\d{2})/); if (dateMatch) { const date = parse(dateMatch[1], 'yyyy-MM-dd', new Date()); - return `${format(date, 'EEEE d MMM yyyy', { locale: fr })} - ${note.title.replace(dateMatch[1], '').trim()}`; + return note.title.replace(dateMatch[1], '').trim(); } } return note.title; @@ -167,6 +167,9 @@ export const NotesView: React.FC = ({ onNoteSelect, currentFolde {currentFolder === 'Diary' || currentFolder === 'Health' ? ( <>
+ {formatDate(note.lastModified)} +
+
{formatNoteTitle(note)}