mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
feat: Implement new React frontend with authentication, routing, theming, and add comprehensive calendar timezone management and database migration scripts.
This commit is contained in:
1 parent
060a401824
commit
9d039d20c4
3 files changed
+360
-326
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user