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:
Taso committed 2021-04-18 15:38:51 -04:00
1 parent d93bdd20d8
commit 0bb20fff31
8 files changed
+219 -136

No files matched your search

+1 -3
View File
@@ -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();
};