fix(modal): fix infinite rerender

- fix useEffect for twitter
- removes handling escape in modal
- don't limit contacts loading
- catch error on unloading
This commit is contained in:
Avarian Knight committed 2021-05-23 23:03:56 -05:00
1 parent 0e1d7f40b5
commit d95062d771
7 files changed
+14 -28

No files matched your search

-4
View File
@@ -4,7 +4,6 @@ import './i18n';
import { Route } from 'react-router-dom';
import { CallModal } from './os/call/components/CallModal';
import { HomeApp } from './apps/home/components/Home';
import { Box, Paper, Typography } from '@material-ui/core';
import { NotificationBar } from './os/notifications/components/NotificationBar';
import { Navigation } from './os/navigation-bar/components/Navigation';
import { useSimcardService } from './os/simcard/hooks/useSimcardService';
@@ -27,12 +26,9 @@ import { PhoneSnackbar } from './ui/components/PhoneSnackbar';
import { NotificationAlert } from './os/notifications/components/NotificationAlert';
import { useCallModal } from './os/call/hooks/useCallModal';
import WindowSnackbar from './ui/components/WindowSnackbar';
import { usePhone } from './os/phone/hooks/usePhone';
import { useTranslation } from 'react-i18next';
import { useSnackbar } from './ui/hooks/useSnackbar';
import { PhoneEvents } from '../../typings/phone';
import { isDefaultWallpaper } from './apps/settings/utils/isDefaultWallpaper';
import { useKeyboardService } from './os/keyboard/hooks/useKeyboardService';
import PhoneWrapper from './PhoneWrapper';
import dayjs from 'dayjs';