mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Merge pull request #205 from project-error/feat/public-api
feat(player/npwd): Public facing API
This commit is contained in:
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();
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user