mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
* Add working notifications with only twitter for now * feat(notification-bar): I didnt copy from NP * feat(notifications): Collapse when no more notifications after closing one * Improve overall messages styling code * Improve Routing performance * improve use keyboard hook * Remove unused returns * Button hover color :) * Button hover color :) x2 * Added hover style to containedPrimary msg btn * Replace custom components for custom theme providers for Messages and Contacts apps * Improve createAppThemeProvider * Improve createAppThemeProvider * Final housekeeping for messages styles * Change placeholder to label in Contacts app text fields * Fix alerts style with navigation and fix calc copy alerrt * Split Phone code for snackbar * Add more options and style Context Menu * Enable Sellout theme provider and make it work with light themes
12 lines
448 B
TypeScript
12 lines
448 B
TypeScript
import { useNuiEvent } from '../../os/nui-events/hooks/useNuiEvent';
|
|
import { useRecoilState, useSetRecoilState } from 'recoil';
|
|
import { callerState } from './state';
|
|
|
|
export const useCallService = () => {
|
|
const [caller, setCaller] = useRecoilState(callerState.currentCall);
|
|
const setModal = useSetRecoilState(callerState.callModal);
|
|
|
|
useNuiEvent('CALL', 'setCaller', setCaller, {}, caller);
|
|
useNuiEvent('CALL', 'callModal', setModal);
|
|
};
|