mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(phone/build): fix various eslint warnings on build
This commit is contained in:
1 parent
e2f03f411d
commit
334a79b68b
3 files changed
+5
-4
No files matched your search
@@ -7,7 +7,6 @@ import { Route } from 'react-router-dom';
|
|||||||
import ContactsInfoPage from './views/ContactInfo';
|
import ContactsInfoPage from './views/ContactInfo';
|
||||||
import { ContactPage } from './views/ContactsPage';
|
import { ContactPage } from './views/ContactsPage';
|
||||||
import { ContactsThemeProvider } from '../providers/ContactsThemeProvider';
|
import { ContactsThemeProvider } from '../providers/ContactsThemeProvider';
|
||||||
import { ContactEvents } from '../../../../../typings/contact';
|
|
||||||
import PersonAddIcon from '@material-ui/icons/PersonAdd';
|
import PersonAddIcon from '@material-ui/icons/PersonAdd';
|
||||||
import Fab from '@material-ui/core/Fab';
|
import Fab from '@material-ui/core/Fab';
|
||||||
import { useHistory } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import PersonAddIcon from '@material-ui/icons/PersonAdd';
|
|||||||
import { List } from '../../../../ui/components/List';
|
import { List } from '../../../../ui/components/List';
|
||||||
import { ListItem } from '../../../../ui/components/ListItem';
|
import { ListItem } from '../../../../ui/components/ListItem';
|
||||||
import { useContactActions } from '../../../contacts/hooks/useContactActions';
|
import { useContactActions } from '../../../contacts/hooks/useContactActions';
|
||||||
import { CallEvents, CallHistoryItem } from '../../../../../../typings/call';
|
import { CallHistoryItem } from '../../../../../../typings/call';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Box, IconButton, ListItemIcon, ListItemText } from '@material-ui/core';
|
import { Box, IconButton, ListItemIcon, ListItemText } from '@material-ui/core';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { CallEvents } from '../../../../../typings/call';
|
|||||||
import { fetchNui } from '../../../utils/fetchNui';
|
import { fetchNui } from '../../../utils/fetchNui';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
import { useMyPhoneNumber } from '../../simcard/hooks/useMyPhoneNumber';
|
import { useMyPhoneNumber } from '../../simcard/hooks/useMyPhoneNumber';
|
||||||
import { useDialingSound } from './useDialingSound';
|
|
||||||
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { ServerPromiseResp } from '../../../../../typings/common';
|
import { ServerPromiseResp } from '../../../../../typings/common';
|
||||||
@@ -19,12 +18,15 @@ interface CallHook {
|
|||||||
initializeCall(number: string): void;
|
initializeCall(number: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// const TIME_TILL_AUTO_HANGUP = 15000;
|
||||||
|
|
||||||
export const useCall = (): CallHook => {
|
export const useCall = (): CallHook => {
|
||||||
const [call, setCall] = useRecoilState(callerState.currentCall);
|
const [call, setCall] = useRecoilState(callerState.currentCall);
|
||||||
|
// const [dialRing, setDialRing] = useState(false);
|
||||||
const myPhoneNumber = useMyPhoneNumber();
|
const myPhoneNumber = useMyPhoneNumber();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { addAlert } = useSnackbar();
|
const { addAlert } = useSnackbar();
|
||||||
const { endDialTone, startDialTone } = useDialingSound();
|
// const { endDialTone, startDialTone } = useDialingSound();
|
||||||
|
|
||||||
const initializeCall = useCallback(
|
const initializeCall = useCallback(
|
||||||
(number) => {
|
(number) => {
|
||||||
|
|||||||
Reference in new issue
Block a user