mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
I make phone work (#89)
This commit is contained in:
1 parent
7420a20c7e
commit
7bafa7d518
4 files changed
+14
-20
No files matched your search
@@ -1,5 +1,3 @@
|
||||
|
||||
import { createContext, useCallback } from 'react';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { useNotes } from './useNotes';
|
||||
@@ -7,10 +5,10 @@ import { noteStates } from './state';
|
||||
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||
|
||||
export const useNotesService = () => {
|
||||
const { addAlert } = useSnackbar()
|
||||
const { addAlert } = useSnackbar();
|
||||
const setNotes = useSetRecoilState(noteStates.noteItems);
|
||||
|
||||
useNuiEvent('NOTES', 'setNotes', setNotes);
|
||||
useNuiEvent('NOTES', 'setAlert', addAlert)
|
||||
useNuiEvent('NOTES', 'setAlert', addAlert);
|
||||
return useNotes();
|
||||
};
|
||||
Reference in new issue
Block a user