mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): useNotesService | mock data
This commit is contained in:
1 parent
448b273dea
commit
3f6600c28c
1 file changed
+26
@@ -20,6 +20,7 @@ import { useContactsService } from "./apps/contacts/hooks/useContactsService";
|
|||||||
import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
|
import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
|
||||||
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
|
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
|
||||||
import { useBankService } from './apps/bank/hooks/useBankService';
|
import { useBankService } from './apps/bank/hooks/useBankService';
|
||||||
|
import { useNotesService } from "./apps/notes/hooks/useNotesService";
|
||||||
|
|
||||||
//These events are just for testing. Comment it out before building.
|
//These events are just for testing. Comment it out before building.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -35,6 +36,30 @@ setTimeout(() => {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
window.dispatchEvent(
|
||||||
|
new MessageEvent("message", {
|
||||||
|
data: {
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent("message", {
|
new MessageEvent("message", {
|
||||||
@@ -183,6 +208,7 @@ function Phone() {
|
|||||||
useInitKeyboard();
|
useInitKeyboard();
|
||||||
useSelloutService();
|
useSelloutService();
|
||||||
useBankService();
|
useBankService();
|
||||||
|
useNotesService();
|
||||||
|
|
||||||
if (visibility === false) {
|
if (visibility === false) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in new issue
Block a user