mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Feat/inject debug - Use new abstraction to clean up debug data (#70)
* feat(phone/debug): Inject debug data for development * refactor(phone/debug): Refactored mock data to InjectDebugEvents * fix(phone/debug) removed useless debug injections
This commit is contained in:
11 files changed
+243
-256
No files matched your search
@@ -4,6 +4,24 @@ import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { usePhotoModal } from '../hooks/usePhotoModal';
|
||||
import { GalleryGrid } from './grid/GalleryGrid';
|
||||
import { GalleryModal } from './modal/GalleryModal';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'CAMERA',
|
||||
method: 'setPhotos',
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
image: 'https://i.imgur.com/OO8wx6Z.jpg',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
image: 'https://i.imgur.com/pqGBiST.jpg',
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
const CameraApp = () => {
|
||||
const { modal } = usePhotoModal();
|
||||
|
||||
Reference in new issue
Block a user