mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Feature/floating notifications calling and twitter (#112)
* Add floating notifications :O * Add phone notifications and refactor calling ui * This is unsafe * Fix controls null check * Remove go to alert * Fix phone stuck after call * Remove lazy mount for Phone * Fix open/close cl_main * Use effect for notification visibility * Remove all alerts when phone closes * Avoid re-render useNuiEvent * It works now :c
This commit is contained in:
1 parent
4633146d40
commit
f6d7a3dbe1
42 files changed
+869
-679
No files matched your search
+2
-12
@@ -6,12 +6,8 @@ import { RecoilRoot } from 'recoil';
|
||||
import * as Sentry from '@sentry/react';
|
||||
import { Integrations } from '@sentry/tracing';
|
||||
import './main.css';
|
||||
import Phone from './Phone';
|
||||
import TwitterNotification from './apps/twitter/components/notification/TwitterNotification';
|
||||
import { BankNotification } from './apps/bank/components/notification/BankNotification';
|
||||
import PhoneConfig from './config/default.json';
|
||||
import SnackbarProvider from './ui/providers/SnackbarProvider';
|
||||
import { NotificationsProvider } from './os/notifications/providers/NotificationsProvider';
|
||||
import { PhoneContainer } from './PhoneContainer';
|
||||
|
||||
// Enable Sentry when config setting is true
|
||||
if (PhoneConfig.SentryErrorMetrics) {
|
||||
@@ -29,13 +25,7 @@ if (PhoneConfig.SentryErrorMetrics) {
|
||||
ReactDOM.render(
|
||||
<HashRouter>
|
||||
<RecoilRoot>
|
||||
<TwitterNotification />
|
||||
<BankNotification />
|
||||
<SnackbarProvider>
|
||||
<NotificationsProvider>
|
||||
<Phone />
|
||||
</NotificationsProvider>
|
||||
</SnackbarProvider>
|
||||
<PhoneContainer />
|
||||
</RecoilRoot>
|
||||
</HashRouter>,
|
||||
document.getElementById('root')
|
||||
|
||||
Reference in new issue
Block a user