Merge pull request #205 from project-error/feat/public-api

feat(player/npwd): Public facing API
This commit is contained in:
Christopher Gjelten authored and GitHub committed 2021-05-04 11:17:16 +02:00
commit f53117971e
70 files changed
+2324 -1643

No files matched your search

@@ -51,9 +51,9 @@ const ContactsInfoPage = () => {
const Nui = useNuiRequest();
const classes = useStyles();
const history = useHistory();
const { getContact } = useContacts();
const { id } = useParams<ContactInfoRouteParams>();
const { addNumber, referal } = useQueryParams<ContactInfoRouteQuery>({
referal: '/contacts',
@@ -109,9 +109,7 @@ const ContactsInfoPage = () => {
data: contact,
level: 2,
});
Nui.send(ContactEvents.DELETE_CONTACT, {
id: contact.id,
});
Nui.send(ContactEvents.DELETE_CONTACT, contact.id);
history.goBack();
};
+1 -3
View File
@@ -34,9 +34,7 @@ export const NoteModal = () => {
const handleDeleteNote = () => {
const id = detail.id;
Nui.send(NotesEvents.DELETE_NOTE, {
id,
});
Nui.send(NotesEvents.DELETE_NOTE, id);
setDetail(null);
};