mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
* 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
33 lines
945 B
TypeScript
33 lines
945 B
TypeScript
import '@babel/polyfill';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { HashRouter } from 'react-router-dom';
|
|
import { RecoilRoot } from 'recoil';
|
|
import * as Sentry from '@sentry/react';
|
|
import { Integrations } from '@sentry/tracing';
|
|
import './main.css';
|
|
import PhoneConfig from './config/default.json';
|
|
import { PhoneContainer } from './PhoneContainer';
|
|
|
|
// Enable Sentry when config setting is true
|
|
if (PhoneConfig.SentryErrorMetrics) {
|
|
Sentry.init({
|
|
dsn:
|
|
'https://[email protected]/5581619',
|
|
autoSessionTracking: true,
|
|
integrations: [new Integrations.BrowserTracing()],
|
|
// We recommend adjusting this value in production, or using tracesSampler
|
|
// for finer control
|
|
tracesSampleRate: 1.0,
|
|
});
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<HashRouter>
|
|
<RecoilRoot>
|
|
<PhoneContainer />
|
|
</RecoilRoot>
|
|
</HashRouter>,
|
|
document.getElementById('root')
|
|
);
|