mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
refactor(contacts): Refactor contacts to efficient data fetching
This commit is contained in:
1 parent
1940833f56
commit
ecb71cc359
29 files changed
+417
-352
No files matched your search
@@ -21,7 +21,7 @@ import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import { useHistory, useLocation, useParams } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Modal from '../../../../ui/components/Modal';
|
||||
import { useContacts } from '../../../contacts/hooks/useContacts';
|
||||
import { useContactActions } from '../../../contacts/hooks/useContactActions';
|
||||
import { useSimcard } from '../../../../os/simcard/hooks/useSimcard';
|
||||
import { MessageEvents } from '../../../../../../typings/messages';
|
||||
|
||||
@@ -56,7 +56,7 @@ export const MessageModal = () => {
|
||||
const { t } = useTranslation();
|
||||
const { groupId } = useParams<{ groupId: string }>();
|
||||
const { messages, setMessages, activeMessageGroup, setActiveMessageGroup } = useMessages();
|
||||
const { getContactByNumber, getDisplayByNumber } = useContacts();
|
||||
const { getContactByNumber, getDisplayByNumber } = useContactActions();
|
||||
|
||||
const [isLoaded, setLoaded] = useState(false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user