mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
refactor(server/notes): Implement singleton architecture
Also trying something out with the response structure on the server to cut down on redundant calls.
This commit is contained in:
1 parent
d93bdd20d8
commit
0bb20fff31
8 files changed
+219
-136
No files matched your search
@@ -40,9 +40,7 @@ export const NoteModal = () => {
|
||||
|
||||
const handleDeleteNote = () => {
|
||||
const id = detail.id;
|
||||
Nui.send(NotesEvents.DELETE_NOTE, {
|
||||
id,
|
||||
});
|
||||
Nui.send(NotesEvents.DELETE_NOTE, id);
|
||||
setDetail(null);
|
||||
onClose();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user