feat: Implement new React frontend with authentication, routing, theming, and add comprehensive calendar timezone management and database migration scripts.

This commit is contained in:
Michael committed 2025-11-23 13:52:41 +01:00
1 parent 060a401824
commit 9d039d20c4
3 files changed
+360 -326

No files matched your search

+9 -1
View File
@@ -163,7 +163,15 @@ export default function NoteDetailPage() {
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => updateNote({ archived: !note.archived })}>
<DropdownMenuItem onClick={async () => {
if (note?.id) {
const newArchived = !note.archived;
const success = await NotesService.archiveNote(note.id, newArchived);
if (success) {
setNote({ ...note, archived: newArchived });
}
}
}}>
<Archive className="h-4 w-4 mr-2" />
{note.archived ? "Désarchiver" : "Archiver"}
</DropdownMenuItem>