mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(calling/dial): update interfaces
This commit is contained in:
1 parent
8ad85d8209
commit
c7b185014d
7 files changed
+8
-38
No files matched your search
@@ -1,12 +0,0 @@
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { ICallUI } from '../../../common/typings/call';
|
||||
import { dailerState } from './state';
|
||||
|
||||
interface ICall {
|
||||
history: ICallUI[]
|
||||
}
|
||||
|
||||
export const useDailHistory = () => {
|
||||
const history = useRecoilValue(dailerState.history);
|
||||
return history;
|
||||
};
|
||||
@@ -1,11 +0,0 @@
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { dailerState } from './state';
|
||||
import { useDailHistory } from './useDailHistory';
|
||||
|
||||
export const useDailService = () => {
|
||||
const setHistory = useSetRecoilState(dailerState.history);
|
||||
useNuiEvent('DAILER', 'setHistory', setHistory);
|
||||
|
||||
return useDailHistory();
|
||||
};
|
||||
Reference in new issue
Block a user