fix(phone/types): Replaced debug inject methods with new enums"

This commit is contained in:
Taso committed 2021-04-01 12:28:14 -04:00
1 parent d315d72e93
commit 8bfdc1b8b2
8 files changed
+18 -13

No files matched your search

@@ -1,8 +1,9 @@
import { useSetRecoilState } from 'recoil';
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { photoState } from './state';
import { PhotoEvents } from '../../../../../typings/photo';
export const usePhotoService = () => {
const setPhotos = useSetRecoilState(photoState.photos);
useNuiEvent('CAMERA', 'setPhotos', setPhotos);
useNuiEvent('CAMERA', PhotoEvents.SEND_PHOTOS, setPhotos);
};