mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(Dial/nui): rename functions
This commit is contained in:
1 parent
c7b185014d
commit
f4b77d9f51
5 files changed
+13
-13
No files matched your search
@@ -7,11 +7,11 @@ import { useApp } from '../../../os/apps/hooks/useApps';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import DialPage from './views/DialPage';
|
||||
import DialerNavBar from './DialerNavBar';
|
||||
import { useDailHistory } from '../hooks/useDialHistory';
|
||||
import { useDialHistory } from '../hooks/useDialHistory';
|
||||
|
||||
export const DialerApp = () => {
|
||||
|
||||
const history = useDailHistory()
|
||||
const history = useDialHistory()
|
||||
|
||||
const dialer = useApp('DIALER');
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { atom } from 'recoil';
|
||||
|
||||
export const dailerState = {
|
||||
export const dialState = {
|
||||
history: atom({
|
||||
key: 'dailerHistory',
|
||||
default: null,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { ICall } from '../../../common/typings/call';
|
||||
import { dailerState } from './state';
|
||||
import { dialState } from './state';
|
||||
interface ICallUI {
|
||||
history: ICall[]
|
||||
}
|
||||
|
||||
export const useDailHistory = (): ICallUI => {
|
||||
const history = useRecoilValue(dailerState.history);
|
||||
export const useDialHistory = (): ICallUI => {
|
||||
const history = useRecoilValue(dialState.history);
|
||||
return history;
|
||||
};
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { dailerState } from './state';
|
||||
import { useDailHistory } from './useDialHistory';
|
||||
import { dialState } from './state';
|
||||
import { useDialHistory } from './useDialHistory';
|
||||
|
||||
export const useDailService = () => {
|
||||
const setHistory = useSetRecoilState(dailerState.history);
|
||||
export const useDialService = () => {
|
||||
const setHistory = useSetRecoilState(dialState.history);
|
||||
useNuiEvent('DAILER', 'setHistory', setHistory);
|
||||
|
||||
return useDailHistory();
|
||||
return useDialHistory();
|
||||
};
|
||||
Reference in new issue
Block a user