mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
fix(dial/hooks): rename
This commit is contained in:
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();
|
||||
};
|
||||
Reference in new issue
Block a user