fix(dial/hooks): rename

This commit is contained in:
Christopher committed 2021-01-31 21:43:04 +01:00
1 parent eaf764cd01
commit 04afb24bda
2 files changed
+22

No files matched your search

@@ -0,0 +1,11 @@
import { useRecoilValue } from 'recoil';
import { ICall } from '../../../common/typings/call';
import { dailerState } from './state';
interface ICallUI {
history: ICall[]
}
export const useDailHistory = (): ICallUI => {
const history = useRecoilValue(dailerState.history);
return history;
};
@@ -0,0 +1,11 @@
import { useSetRecoilState } from 'recoil';
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { dailerState } from './state';
import { useDailHistory } from './useDialHistory';
export const useDailService = () => {
const setHistory = useSetRecoilState(dailerState.history);
useNuiEvent('DAILER', 'setHistory', setHistory);
return useDailHistory();
};