Merge pull request #61 from project-error/feat/calling-lua-ts

Feat/calling lua ts
This commit is contained in:
Christopher Gjelten authored and GitHub committed 2021-02-03 00:00:06 +01:00
commit 63aea89e2b
47 files changed
+1045 -182

No files matched your search

@@ -35,18 +35,19 @@ export const ContactList = () => {
};
const startCall = (number) => {
console.log(number);
Nui.send('phone:startCall', {
Nui.send('phone:beginCall', {
number,
});
};
const filteredRegEx = new RegExp(filteredContacts, "gi")
return (
<List>
{contacts.contacts
.filter(
(contact) =>
contact.display.includes(filteredContacts.toLowerCase()) ||
contact.number.includes(filteredContacts.toLowerCase())
contact.display.match(filteredRegEx) || contact.number.match(filteredRegEx)
)
.map((contact) => (
<>