feat(notes): return to list after saving a note

This commit is contained in:
devcodetools committed 2026-09-13 16:31:43 +02:00
1 parent c52705ca01
commit 37ace9cab2
3 files changed
+12 -8

No files matched your search

+2 -2
View File
@@ -5,13 +5,13 @@ interface NoteListProps {
onSelect: (id: number) => void
}
const EMPTY_MESSAGE = 'Aucune note pour le moment. Touchez + pour en créer une.'
const EMPTY_MESSAGE = 'Aucune note pour le moment.\nTouchez + pour en créer une.'
function NoteList({ notes, onSelect }: NoteListProps) {
if (notes.length === 0) {
return (
<div className="flex flex-col items-center justify-center gap-2 py-16 text-center">
<p className="text-gray-500">{EMPTY_MESSAGE}</p>
<p className="whitespace-pre-line text-gray-500">{EMPTY_MESSAGE}</p>
</div>
)
}