mock data

This commit is contained in:
Christopher committed 2020-12-04 23:04:10 +01:00
1 parent c2456708eb
commit 96e5f1a46d
1 file changed
+25 -31
+25 -31
View File
@@ -21,8 +21,30 @@ import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
import { useBankService } from './apps/bank/hooks/useBankService';
import { useNotesService } from "./apps/notes/hooks/useNotesService";
import { usePhotoService } from "./apps/camera/hooks/usePhotoService";
//These events are just for testing. Comment it out before building.
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "CAMERA",
method: "setPhotos",
data: [
{
id: 1,
image: 'https://i.imgur.com/OO8wx6Z.jpg',
},
{
id: 1,
image: 'https://i.imgur.com/pqGBiST.jpg'
}
],
},
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -35,6 +57,8 @@ setTimeout(() => {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -160,37 +184,6 @@ setTimeout(() => {
)
}, 1000)
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "CONTACTS",
method: "setContacts",
data: [
{
id: 1,
number: "345-4366",
display: "chip",
avatar: 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Rotating_earth_%28large%29.gif/200px-Rotating_earth_%28large%29.gif'
},
{
id: 2,
number: "456-4366",
display: "shit",
avatar: ''
},
{
id: 3,
number: "123-4366",
display: "rocky",
avatar: 'https://i.imgur.com/B8ta5Aa.jpeg'
},
],
},
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -233,6 +226,7 @@ function Phone() {
useSelloutService();
useBankService();
useNotesService();
usePhotoService();
if (visibility === false) {
return null;