Prettified Code!

This commit is contained in:
itschip authored and GitHub Action committed 2021-01-29 18:57:12 +00:00
1 parent 9895ea2089
commit 26a4c1c31a
7 files changed
+15 -16

No files matched your search

+3 -3
View File
@@ -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();
};
+1 -1
View File
@@ -19,4 +19,4 @@ export interface ICallUI {
tranmitter: string;
receiver: string;
type: string;
}
}