improvemet: bank

This commit is contained in:
chip committed 2020-10-20 15:46:37 +02:00
1 parent ad3cd5f19a
commit a0444019cf
2 files changed
+53 -10

No files matched your search

+20
View File
@@ -19,6 +19,7 @@ import { useApps } from "./os/apps/hooks/useApps";
import { useContactsService } from "./apps/contacts/hooks/useContactsService";
import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
import { useBankService } from './apps/bank/hooks/useBankService';
//These events are just for testing. Comment it out before building.
setTimeout(() => {
@@ -33,6 +34,24 @@ setTimeout(() => {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: 'BANK',
method: 'setTransaction',
data: [
{
id: 1,
amount: 200,
type: 'transfer'
}
]
}
})
)
})
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -116,6 +135,7 @@ function Phone() {
useTwitterService();
useInitKeyboard();
useSelloutService();
useBankService();
if (visibility === false) {
return null;