Feat(Client/Server): Fetching phone number | Some fixes in JS monkaS

This commit is contained in:
chip committed 2020-08-27 15:22:36 +02:00
1 parent 5bdfaca89f
commit e4c592d774
7 files changed
+106 -24

No files matched your search

+11 -23
View File
@@ -30,29 +30,17 @@ setTimeout(() => {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "PHONE",
method: "setVisibility",
data: true,
},
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "PHONE",
method: "setPowerOff",
data: false,
},
})
);
}, 2300);
//setTimeout(() => {
// window.dispatchEvent(
// new MessageEvent("message", {
// data: {
// app: "PHONE",
// method: "setVisibility",
// data: true,
// },
// })
// );
//}, 1000);
function Phone() {
useNuiService();
+1 -1
View File
@@ -6,7 +6,7 @@ import { AppContent } from "../../../ui/components/AppContent";
import { Button } from "../../../ui/components/Button";
import { useTranslation } from "react-i18next";
import { useBank } from "../hooks/useBank";
import { TransactionList } from "./TransactionList";
import { TransactionList } from "./transactionList";
import "./BankApp.css";
import { useApp } from "../../../os/apps/hooks/useApps";
View File
Whitespace-only changes.
+2
View File
@@ -0,0 +1,2 @@
import { atom, selector, useRecoilState } from "recoil";
import { useNuiEvent } from "../../os/nui-events/hooks";