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
@@ -14,6 +14,26 @@ import { useNoteModal } from './hooks/useNoteModal';
|
||||
import { useNoteDetail } from './hooks/useNoteDetail';
|
||||
|
||||
import useStyles from './notes.styles';
|
||||
import InjectDebugData from '../../os/debug/InjectDebugData';
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'NOTES',
|
||||
method: 'setNotes',
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
title: 'First note',
|
||||
content: 'Hello, this is my shitty note',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: 'Second note',
|
||||
content: 'Hello, this is another shitty note',
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
export const NotesApp = () => {
|
||||
const { setNoteModal } = useNoteModal();
|
||||
|
||||
Reference in new issue
Block a user