mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Make use of library instead of having code duplicated (#201)
* Use fivem-nui-react-lib
This commit is contained in:
1 parent
0cf5bc2bc7
commit
8e79eb1345
60 files changed
+231
-347
No files matched your search
@@ -4,7 +4,7 @@ import { makeStyles } from '@material-ui/core/styles';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useHistory, useParams } from 'react-router-dom';
|
||||
import { useContacts } from '../../hooks/useContacts';
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
||||
import LogDebugEvent from '../../../../os/debug/LogDebugEvents';
|
||||
import { useQueryParams } from '../../../../common/hooks/useQueryParams';
|
||||
@@ -48,12 +48,12 @@ const useStyles = makeStyles({
|
||||
});
|
||||
|
||||
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',
|
||||
|
||||
Reference in new issue
Block a user