This commit is contained in:
alma 2026-01-11 23:14:09 +01:00
parent c2469ab000
commit a31692f8b6

View File

@ -63,6 +63,9 @@ export const NotesView: React.FC<NotesViewProps> = ({
};
const formatNoteTitle = (note: Note) => {
if (!note.title) {
return 'Sans titre';
}
if (currentFolder === 'Diary' || currentFolder === 'Health') {
// Try to extract date from title (format: YYYY-MM-DD)
const dateMatch = note.title.match(/^(\d{4}-\d{2}-\d{2})/);