mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Prettified Code!
This commit is contained in:
1 parent
9895ea2089
commit
26a4c1c31a
7 files changed
+15
-16
No files matched your search
@@ -3,6 +3,6 @@ import { atom } from 'recoil';
|
||||
export const dailerState = {
|
||||
history: atom({
|
||||
key: 'dailerHistory',
|
||||
default: null
|
||||
})
|
||||
}
|
||||
default: null,
|
||||
}),
|
||||
};
|
||||
@@ -4,4 +4,4 @@ import { dailerState } from './state';
|
||||
export const useDailHistory = () => {
|
||||
const history = useRecoilValue(dailerState.history);
|
||||
return history;
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useSetRecoilState } from 'recoil'
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { dailerState } from './state';
|
||||
import { useDailHistory } from './useDailHistory';
|
||||
@@ -7,5 +7,5 @@ export const useDailService = () => {
|
||||
const setHistory = useSetRecoilState(dailerState.history);
|
||||
useNuiEvent('DAILER', 'setHistory', setHistory);
|
||||
|
||||
return useDailHistory()
|
||||
}
|
||||
return useDailHistory();
|
||||
};
|
||||
@@ -19,4 +19,4 @@ export interface ICallUI {
|
||||
tranmitter: string;
|
||||
receiver: string;
|
||||
type: string;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user