update dial events

This commit is contained in:
Christopher committed 2021-03-25 11:31:05 +01:00
1 parent 98efed4e64
commit 2cd3e9e93d
4 files changed
+14 -10

No files matched your search

@@ -1,8 +1,9 @@
import { useSetRecoilState } from 'recoil';
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { dialState } from './state';
import { CallEvents } from '../../../../../typings/call';
export const useDialService = () => {
const setHistory = useSetRecoilState(dialState.history);
useNuiEvent('DIALER', 'setHistory', setHistory);
useNuiEvent('DIALER', CallEvents.SET_CALL_HISTORY, setHistory);
};