mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Merge branch 'master' of github.com:Re-Ignited-Development/new-phone-who-dis into feature/twitter
This commit is contained in:
commit
b180c4c655
18 files changed
+223
-77
No files matched your search
+59
-51
@@ -4,8 +4,7 @@ import "./i18n";
|
||||
import { Route } from "react-router-dom";
|
||||
import { useSettings } from "./apps/settings/hooks/useSettings";
|
||||
import MessageIcon from "@material-ui/icons/Email";
|
||||
|
||||
import Nui from "./os/nui-events/utils/Nui"
|
||||
import { CallModal } from "./modal/components/CallModal";
|
||||
import { HomeApp } from "./apps/home/components/Home";
|
||||
import { ThemeProvider } from "@material-ui/core";
|
||||
import { useInitKeyboard } from "./os/keyboard/hooks/useKeyboard";
|
||||
@@ -20,53 +19,53 @@ import { useApps } from "./os/apps/hooks/useApps";
|
||||
import { useContactsService } from "./apps/contacts/hooks/useContactsService";
|
||||
import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
|
||||
|
||||
// These events are just for testing. Comment it out before building.
|
||||
//setTimeout(() => {
|
||||
// window.dispatchEvent(
|
||||
// new MessageEvent("message", {
|
||||
// data: {
|
||||
// app: "SIMCARD",
|
||||
// method: "setNumber",
|
||||
// data: "111-1134",
|
||||
// },
|
||||
// })
|
||||
// );
|
||||
//}, 1000);
|
||||
//These events are just for testing. Comment it out before building.
|
||||
setTimeout(() => {
|
||||
window.dispatchEvent(
|
||||
new MessageEvent("message", {
|
||||
data: {
|
||||
app: "SIMCARD",
|
||||
method: "setNumber",
|
||||
data: "111-1134",
|
||||
},
|
||||
})
|
||||
);
|
||||
}, 1000);
|
||||
|
||||
//setTimeout(() => {
|
||||
// window.dispatchEvent(
|
||||
// new MessageEvent("message", {
|
||||
// data: {
|
||||
// app: "BANK",
|
||||
// method: "setContacts",
|
||||
// data: [
|
||||
// {
|
||||
// id: 1,
|
||||
// number: "345-4366",
|
||||
// display: "Kevin",
|
||||
// },
|
||||
// {
|
||||
// id: 2,
|
||||
// number: "345-4366",
|
||||
// display: "Kevin",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// })
|
||||
// );
|
||||
//}, 1000);
|
||||
setTimeout(() => {
|
||||
window.dispatchEvent(
|
||||
new MessageEvent("message", {
|
||||
data: {
|
||||
app: "BANK",
|
||||
method: "setContacts",
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
number: "345-4366",
|
||||
display: "Kevin",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
number: "345-4366",
|
||||
display: "Kevin",
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
);
|
||||
}, 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: "setVisibility",
|
||||
data: true,
|
||||
},
|
||||
})
|
||||
);
|
||||
}, 1000);
|
||||
|
||||
function Phone() {
|
||||
useNuiService();
|
||||
@@ -82,6 +81,8 @@ function Phone() {
|
||||
return null;
|
||||
}
|
||||
|
||||
const calling = false;
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<div className="PhoneWrapper">
|
||||
@@ -110,10 +111,17 @@ function Phone() {
|
||||
]}
|
||||
/>
|
||||
<div className="PhoneAppContainer">
|
||||
<Route exact path="/" component={HomeApp} />
|
||||
{allApps.map((App) => (
|
||||
<App.Route key={App.id} />
|
||||
))}
|
||||
{calling ? (
|
||||
<CallModal />
|
||||
) : (
|
||||
<>
|
||||
<Route exact path="/" component={HomeApp} />
|
||||
|
||||
{allApps.map((App) => (
|
||||
<App.Route key={App.id} />
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<Navigation />
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user