mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(phone/types): Replaced debug inject methods with new enums"
This commit is contained in:
1 parent
d315d72e93
commit
8bfdc1b8b2
8 files changed
+18
-13
No files matched your search
@@ -5,11 +5,12 @@ import { GalleryGrid } from './grid/GalleryGrid';
|
||||
import { GalleryModal } from './modal/GalleryModal';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import { PhotoEvents } from '../../../../../typings/photo';
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'CAMERA',
|
||||
method: 'setPhotos',
|
||||
method: PhotoEvents.SEND_PHOTOS,
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user