mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
update dial events
This commit is contained in:
1 parent
98efed4e64
commit
2cd3e9e93d
4 files changed
+14
-10
No files matched your search
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
|
||||
import { useNuiEvent } from '../../nui-events/hooks/useNuiEvent';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useCall } from './useCall';
|
||||
import { CallProps } from '../../../../../typings/call';
|
||||
import { CallEvents, CallProps } from '../../../../../typings/call';
|
||||
import InjectDebugData from '../../debug/InjectDebugData';
|
||||
import { useCallModal } from './useCallModal';
|
||||
import { useHistory, useLocation } from 'react-router-dom';
|
||||
@@ -61,6 +61,6 @@ export const useCallService = () => {
|
||||
setCall(_call);
|
||||
setNotification(_call);
|
||||
};
|
||||
useNuiEvent<CallProps>('CALL', 'setCaller', _setCall, call);
|
||||
useNuiEvent<boolean>('CALL', 'callModal', setModal);
|
||||
useNuiEvent<CallProps>('CALL', CallEvents.SET_CALLER, _setCall, call);
|
||||
useNuiEvent<boolean>('CALL', CallEvents.SET_CALL_MODAL, setModal);
|
||||
};
|
||||
Reference in new issue
Block a user