diff --git a/phone/src/apps/contacts/components/ContactsApp.tsx b/phone/src/apps/contacts/components/ContactsApp.tsx index b953ffb..783d93e 100644 --- a/phone/src/apps/contacts/components/ContactsApp.tsx +++ b/phone/src/apps/contacts/components/ContactsApp.tsx @@ -7,7 +7,6 @@ import { Route } from 'react-router-dom'; import ContactsInfoPage from './views/ContactInfo'; import { ContactPage } from './views/ContactsPage'; import { ContactsThemeProvider } from '../providers/ContactsThemeProvider'; -import { ContactEvents } from '../../../../../typings/contact'; import PersonAddIcon from '@material-ui/icons/PersonAdd'; import Fab from '@material-ui/core/Fab'; import { useHistory } from 'react-router'; diff --git a/phone/src/apps/dialer/components/views/DialerHistory.tsx b/phone/src/apps/dialer/components/views/DialerHistory.tsx index 4f9dcd4..14f1b08 100644 --- a/phone/src/apps/dialer/components/views/DialerHistory.tsx +++ b/phone/src/apps/dialer/components/views/DialerHistory.tsx @@ -6,7 +6,7 @@ import PersonAddIcon from '@material-ui/icons/PersonAdd'; import { List } from '../../../../ui/components/List'; import { ListItem } from '../../../../ui/components/ListItem'; import { useContactActions } from '../../../contacts/hooks/useContactActions'; -import { CallEvents, CallHistoryItem } from '../../../../../../typings/call'; +import { CallHistoryItem } from '../../../../../../typings/call'; import { useTranslation } from 'react-i18next'; import { Box, IconButton, ListItemIcon, ListItemText } from '@material-ui/core'; import { useHistory } from 'react-router-dom'; diff --git a/phone/src/os/call/hooks/useCall.ts b/phone/src/os/call/hooks/useCall.ts index 85b307a..7bb9029 100644 --- a/phone/src/os/call/hooks/useCall.ts +++ b/phone/src/os/call/hooks/useCall.ts @@ -5,7 +5,6 @@ import { CallEvents } from '../../../../../typings/call'; import { fetchNui } from '../../../utils/fetchNui'; import { useCallback } from 'react'; import { useMyPhoneNumber } from '../../simcard/hooks/useMyPhoneNumber'; -import { useDialingSound } from './useDialingSound'; import { useSnackbar } from '../../../ui/hooks/useSnackbar'; import { useTranslation } from 'react-i18next'; import { ServerPromiseResp } from '../../../../../typings/common'; @@ -19,12 +18,15 @@ interface CallHook { initializeCall(number: string): void; } +// const TIME_TILL_AUTO_HANGUP = 15000; + export const useCall = (): CallHook => { const [call, setCall] = useRecoilState(callerState.currentCall); + // const [dialRing, setDialRing] = useState(false); const myPhoneNumber = useMyPhoneNumber(); const { t } = useTranslation(); const { addAlert } = useSnackbar(); - const { endDialTone, startDialTone } = useDialingSound(); + // const { endDialTone, startDialTone } = useDialingSound(); const initializeCall = useCallback( (number) => {