Prettified Code!

This commit is contained in:
TasoOneAsia authored and GitHub Action committed 2021-01-06 16:25:12 +00:00
1 parent dce7528c7a
commit 3b42511c10
2 files changed
+20 -22

No files matched your search

+3 -4
View File
@@ -78,10 +78,9 @@ The development environment assumes you have the following prerequisites:
- If iteration on UI changes run the project with `yarn watch` which will monitor the JavaScript project and rebuild when you make code changes and then `ensure new-phone-who-dis` after making your change
- Avoid commiting `index.html` as the development version overrides the production version
#### Important Note
By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically
By installing NPWD you agree to the use of the following diagnostic package, Sentry, (in use within the React portion of NPWD), that automatically
uploads relevant sesssion details and stack traces whenever an exception is thrown. We use these metrics to further
improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us).
Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone.
improve the quality of the phone. To explicitly disable this (we urge you not to as its incredibly useful metrics for us).
Please change the `SentryErrorMetrics` setting to `false` in `phone/config/default.json` and rebuild the phone.
+17 -18
View File
@@ -1,28 +1,27 @@
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'
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",
dsn:
'https://[email protected]/5581619',
autoSessionTracking: true,
integrations: [
new Integrations.BrowserTracing(),
],
integrations: [new Integrations.BrowserTracing()],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
})
});
}
ReactDOM.render(
@@ -33,5 +32,5 @@ ReactDOM.render(
<Phone />
</RecoilRoot>
</HashRouter>,
document.getElementById("root")
document.getElementById('root')
);