Remove client phoneConfig event (#73)

* Remove client phoneConfig event

* Remove unused debug

* Remove unused import

* Remove unused import

* Remove duplicated functions | fix useEffect dependency | etc

* Fix warnings

* Update phone/src/apps/twitter/components/TwitterApp.tsx

Co-authored-by: Taso <[email protected]>

Co-authored-by: Taso <[email protected]>
This commit is contained in:
J Francisco RaderandTaso authored and GitHub committed 2021-02-10 12:04:28 -05:00
1 parent fdfd4133e2
commit 81f5e27064
12 files changed
+61 -81

No files matched your search

+9 -46
View File
@@ -1,7 +1,7 @@
import React, { useMemo } from 'react';
import './Phone.css';
import './i18n';
import { Route, useHistory } from 'react-router-dom';
import { Route } from 'react-router-dom';
import { CallModal } from './modal/components/CallModal';
import { HomeApp } from './apps/home/components/Home';
import { createMuiTheme, ThemeProvider } from '@material-ui/core';
@@ -33,51 +33,6 @@ import { useDialService } from './apps/dialer/hooks/useDialService';
import InjectDebugData from './os/debug/InjectDebugData';
import { useQuickAccess } from './os/notifications/hooks/useQuickAccess';
InjectDebugData([
{
app: 'PHONE',
method: 'phoneConfig',
data: {
Locale: 'en',
KeyTogglePhone: 288,
KeyTakeCall: 38,
PhoneAsItem: false,
SwimDestroy: false,
RunRate: 10,
DestoryChance: 100,
DestroyPhoneReCheck: 3,
notificationPosition: {
horizontal: 'right',
vertical: 'top',
},
general: {
useDashNumber: true,
},
twitter: {
showNotifications: true,
generateProfileNameFromUsers: true,
allowEdtiableProfileName: true,
allowDeleteTweets: true,
allowReportTweets: true,
characterLimit: 160,
newLineLimit: 10,
enableAvatars: true,
enableEmojis: true,
enableImages: true,
maxImages: 3,
},
bank: {
showNotifications: true,
},
},
},
{
app: 'PHONE',
method: 'setVisibility',
data: true,
},
]);
function Phone() {
const quickAccess = useQuickAccess();
useNuiService();
@@ -173,3 +128,11 @@ function Phone() {
}
export default Phone;
InjectDebugData([
{
app: 'PHONE',
method: 'setVisibility',
data: true,
},
]);