mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +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
@@ -1,8 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import { useProfile } from '../../hooks/useProfile';
|
||||
import Avatar from '../Avatar';
|
||||
import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
|
||||
@@ -23,6 +22,7 @@ const useStyles = makeStyles((theme) => ({
|
||||
}));
|
||||
|
||||
export function Profile() {
|
||||
const Nui = useNuiRequest();
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
const { profile } = useProfile();
|
||||
|
||||
Reference in new issue
Block a user