mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(phone/contacts): fixed incorrect Nui.send property | history.goBack
This commit is contained in:
1 parent
32f6f6ebcc
commit
e51bcca7f8
4 files changed
+8
-9
No files matched your search
@@ -91,11 +91,12 @@ const ContactsInfoPage = () => {
|
||||
data: contact,
|
||||
level: 2,
|
||||
});
|
||||
Nui.send('phone:addContact', {
|
||||
name,
|
||||
Nui.send('phone:addContacts', {
|
||||
display: name,
|
||||
number,
|
||||
avatar,
|
||||
});
|
||||
history.goBack()
|
||||
};
|
||||
|
||||
const handleContactSave = () => {
|
||||
@@ -110,6 +111,7 @@ const ContactsInfoPage = () => {
|
||||
number,
|
||||
avatar,
|
||||
});
|
||||
history.goBack()
|
||||
};
|
||||
|
||||
const handleContactDelete = () => {
|
||||
@@ -121,6 +123,7 @@ const ContactsInfoPage = () => {
|
||||
Nui.send('phone:deleteContact', {
|
||||
id: contact.id,
|
||||
});
|
||||
history.goBack()
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -26,7 +26,7 @@ export const ContactPage = () => {
|
||||
<>
|
||||
<ContactList />
|
||||
<Fab
|
||||
onClick={() => history.push('/contacts/add')}
|
||||
onClick={() => history.push('/contacts/-1')}
|
||||
style={{ backgroundColor: '#2196f3', color: '#fff' }}
|
||||
className={classes.absolute}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user