Files
new-phone-who-dis/phone/src/index.tsx
T
2021-01-06 16:25:12 +00:00

37 lines
1.1 KiB
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 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';
// 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>
<TwitterNotification />
<BankNotification />
<Phone />
</RecoilRoot>
</HashRouter>,
document.getElementById('root')
);