chore(phone): Cleaned up eslint warnings

No more warnings hooray!
This commit is contained in:
Taso committed 2021-04-01 14:06:45 -04:00
1 parent ffd21c4e6d
commit 833efedec4
10 files changed
+11 -23

No files matched your search

-2
View File
@@ -5,7 +5,6 @@ import { Route } from 'react-router-dom';
import { CallModal } from './os/call/components/CallModal'; import { CallModal } from './os/call/components/CallModal';
import { HomeApp } from './apps/home/components/Home'; import { HomeApp } from './apps/home/components/Home';
import { Box, Paper, Slide, Typography } from '@material-ui/core'; import { Box, Paper, Slide, Typography } from '@material-ui/core';
import { useKeyboardService } from './os/keyboard/hooks/useKeyboardService';
import { NotificationBar } from './os/notifications/components/NotificationBar'; import { NotificationBar } from './os/notifications/components/NotificationBar';
import { Navigation } from './os/navigation-bar/components/Navigation'; import { Navigation } from './os/navigation-bar/components/Navigation';
import { useNuiService } from './os/nui-events/hooks/useNuiService'; import { useNuiService } from './os/nui-events/hooks/useNuiService';
@@ -63,7 +62,6 @@ function Phone() {
}, []); }, []);
useNuiService(); useNuiService();
useKeyboardService();
usePhoneService(); usePhoneService();
useSimcardService(); useSimcardService();
useContactsService(); useContactsService();
@@ -7,7 +7,6 @@ import { useBankNotification } from './useBankNotification';
import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar'; import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { BankEvents } from '../../../../../typings/bank'; import { BankEvents } from '../../../../../typings/bank';
import { PhoneEvents } from '../../../../../typings/phone';
export const useBankService = () => { export const useBankService = () => {
const setTransaction = useSetRecoilState(bankState.transactions); const setTransaction = useSetRecoilState(bankState.transactions);
@@ -1,5 +1,5 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import { makeStyles, Button, TextField, Typography } from '@material-ui/core'; import { makeStyles, Button, TextField } from '@material-ui/core';
import Nui from '../../../../os/nui-events/utils/Nui'; import Nui from '../../../../os/nui-events/utils/Nui';
import { MarketplaceEvents } from '../../../../../../typings/marketplace'; import { MarketplaceEvents } from '../../../../../../typings/marketplace';
import { useSnackbar } from '../../../../ui/hooks/useSnackbar'; import { useSnackbar } from '../../../../ui/hooks/useSnackbar';
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Box, List } from '@material-ui/core'; import { Box, List } from '@material-ui/core';
import { MessageEvents, MessageGroup } from '../../../../../../typings/messages'; import { MessageGroup } from '../../../../../../typings/messages';
import Nui from '../../../../os/nui-events/utils/Nui';
import useMessages from '../../hooks/useMessages'; import useMessages from '../../hooks/useMessages';
import MessageGroupItem from './MessageGroupItem'; import MessageGroupItem from './MessageGroupItem';
import useStyles from './list.styles'; import useStyles from './list.styles';
@@ -1,4 +1,3 @@
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { matchPath, useHistory } from 'react-router-dom'; import { matchPath, useHistory } from 'react-router-dom';
import { useApp } from '../../../os/apps/hooks/useApps'; import { useApp } from '../../../os/apps/hooks/useApps';
@@ -10,10 +10,8 @@ import {
Tooltip, Tooltip,
Typography, Typography,
Switch, Switch,
TextField,
} from '@material-ui/core'; } from '@material-ui/core';
import CreateIcon from '@material-ui/icons/Create'; import CreateIcon from '@material-ui/icons/Create';
import { PictureThumbnail } from '../../../ui/components/PictureThumbnail';
interface ISettingItem { interface ISettingItem {
options?: any; options?: any;
@@ -1,4 +1,4 @@
import React, { useState } from 'react'; import React from 'react';
import { AppWrapper } from '../../../ui/components'; import { AppWrapper } from '../../../ui/components';
import { AppTitle } from '../../../ui/components/AppTitle'; import { AppTitle } from '../../../ui/components/AppTitle';
import { AppContent } from '../../../ui/components/AppContent'; import { AppContent } from '../../../ui/components/AppContent';
+1 -8
View File
@@ -1,13 +1,7 @@
import React from 'react'; import React from 'react';
import { blue, common, grey, purple } from '@material-ui/core/colors'; import { blue, common, grey, purple } from '@material-ui/core/colors';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { import { faAd, faPlaneArrival, faPhoneAlt, faStickyNote } from '@fortawesome/free-solid-svg-icons';
faAd,
faPlaneArrival,
faPhoneAlt,
faWonSign,
faStickyNote,
} from '@fortawesome/free-solid-svg-icons';
import { faTwitter } from '@fortawesome/free-brands-svg-icons'; import { faTwitter } from '@fortawesome/free-brands-svg-icons';
import ContactsIcon from '@material-ui/icons/Contacts'; import ContactsIcon from '@material-ui/icons/Contacts';
@@ -20,7 +14,6 @@ import { DialerApp } from '../../../apps/dialer/components/DialerApp';
import { ContactsApp } from '../../../apps/contacts/components/ContactsApp'; import { ContactsApp } from '../../../apps/contacts/components/ContactsApp';
import { CalculatorApp } from '../../../apps/calculator/components/CalculatorApp'; import { CalculatorApp } from '../../../apps/calculator/components/CalculatorApp';
import { SettingsApp } from '../../../apps/settings/components/SettingsApp'; import { SettingsApp } from '../../../apps/settings/components/SettingsApp';
import { BankApp } from '../../../apps/bank/components/BankApp';
import { MessagesApp } from '../../../apps/messages/components/MessagesApp'; import { MessagesApp } from '../../../apps/messages/components/MessagesApp';
import { MatchApp } from '../../../apps/match/components/MatchApp'; import { MatchApp } from '../../../apps/match/components/MatchApp';
import { TwitterApp } from '../../../apps/twitter/components/TwitterApp'; import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
@@ -2,10 +2,10 @@ import React from 'react';
import { Box, makeStyles } from '@material-ui/core'; import { Box, makeStyles } from '@material-ui/core';
import { CallControls } from './CallControls'; import { CallControls } from './CallControls';
interface ICallNotificationProps { // interface ICallNotificationProps {
onAccept(): void; // onAccept(): void;
onReject(): void; // onReject(): void;
} // }
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
root: { root: {
+3 -1
View File
@@ -26,7 +26,7 @@ function getParams(event, data): [RequestInfo, RequestInit] {
]; ];
} }
export default { const NuiUtils = {
async send(event: any, data = {}) { async send(event: any, data = {}) {
return fetch(...getParams(event, data)); return fetch(...getParams(event, data));
}, },
@@ -34,3 +34,5 @@ export default {
return abortableFetch(...getParams(event, data)); return abortableFetch(...getParams(event, data));
}, },
}; };
export default NuiUtils;