Make use of library instead of having code duplicated (#201)

* Use fivem-nui-react-lib
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-04-07 19:07:10 -03:00
1 parent 0cf5bc2bc7
commit 8e79eb1345
60 files changed
+231 -347

No files matched your search

@@ -5,7 +5,7 @@ import PhoneIcon from '@material-ui/icons/Phone';
import PersonAddIcon from '@material-ui/icons/PersonAdd';
import { List } from '../../../../ui/components/List';
import { ListItem } from '../../../../ui/components/ListItem';
import Nui from '../../../../os/nui-events/utils/Nui';
import { useNuiRequest } from 'fivem-nui-react-lib';
import { useSimcard } from '../../../../os/simcard/hooks/useSimcard';
import { useContacts } from '../../../contacts/hooks/useContacts';
import { CallEvents, ICall } from '../../../../../../typings/call';
@@ -25,6 +25,7 @@ const useStyles = makeStyles((theme: Theme) => ({
}));
export const DialerHistory = ({ calls }) => {
const Nui = useNuiRequest();
const { number: myNumber } = useSimcard();
const { getDisplayByNumber } = useContacts();