mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 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;
|
||||
}
|
||||
}
|
||||
@@ -354,7 +354,7 @@ on(`__cfx_nui:${events.OPEN_APP_CAMERA}`, () => {
|
||||
RegisterNuiCallbackType(events.OPEN_APP_DAILER);
|
||||
on(`__cfx_nui:${events.OPEN_APP_DAILER}`, () => {
|
||||
emitNet(events.PHONE_CALL_FETCH_CALLS);
|
||||
})
|
||||
});
|
||||
|
||||
RegisterCommand(
|
||||
'phone',
|
||||
@@ -365,7 +365,6 @@ RegisterCommand(
|
||||
false
|
||||
);
|
||||
|
||||
|
||||
RegisterNuiCallbackType('phone:close');
|
||||
on(`__cfx_nui:phone:close`, () => {
|
||||
Phone();
|
||||
@@ -430,4 +429,4 @@ onNet('phone:sendCredentials', (number: string) => {
|
||||
data: number,
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -72,4 +72,4 @@ onNet('phone:getCredentials', async () => {
|
||||
} catch (error) {
|
||||
console.log('Failed to get number. ', error);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -94,11 +94,11 @@ export default {
|
||||
CAMERA_DELETE_PHOTO_SUCCESS: 'phone:deletePhotoSuccess',
|
||||
CONTACTS_ACTION_RESULT: 'phone:contactActionResult',
|
||||
// copy
|
||||
PHONE_USE_CLIPBOARD: "phone:useClipboard",
|
||||
PHONE_USE_CLIPBOARD: 'phone:useClipboard',
|
||||
|
||||
// calling
|
||||
PHONE_INITIALIZE_CALL: "phone:beginCall",
|
||||
PHONE_START_CALL: "phone:startCall",
|
||||
PHONE_INITIALIZE_CALL: 'phone:beginCall',
|
||||
PHONE_START_CALL: 'phone:startCall',
|
||||
PHONE_ACCEPT_CALL: 'phone:acceptCall',
|
||||
PHONE_END_CALL: 'phone:endCall',
|
||||
PHONE_CALL_WAS_ENDED: 'phone:callEnded',
|
||||
@@ -106,5 +106,5 @@ export default {
|
||||
PHONE_CALL_REJECTED: 'phone:rejectCall',
|
||||
PHONE_CALL_WAS_REJECTED: 'phone:callRejected',
|
||||
PHONE_CALL_FETCH_CALLS: 'phone:fetchCalls',
|
||||
PHONE_CALL_SEND_HISTORY: 'phone:sendCallHistory'
|
||||
PHONE_CALL_SEND_HISTORY: 'phone:sendCallHistory',
|
||||
};
|
||||
Reference in new issue
Block a user