diff --git a/.vscode/settings.json b/.vscode/settings.json index ddc9ac195..6e838fb24 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,7 +14,9 @@ } ] }, - "editor.codeActionsOnSave": { "source.organizeImports": true }, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + }, "explorer.fileNesting.patterns": { "*.ts": "${capture}.js, ${capture}.typegen.ts, ${capture}.graphql, ${capture}.generated.ts", "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", diff --git a/apps/redi-connect/src/index.html b/apps/redi-connect/src/index.html index 17760772f..c8d2189a8 100644 --- a/apps/redi-connect/src/index.html +++ b/apps/redi-connect/src/index.html @@ -7,10 +7,6 @@ name="Description" content="ReDI School Connect platform: to connect mentors with mentees" /> - ReDI Connect - - + + + + + - + - diff --git a/apps/redi-connect/src/main.tsx b/apps/redi-connect/src/main.tsx index dfd68693e..4af6b7022 100755 --- a/apps/redi-connect/src/main.tsx +++ b/apps/redi-connect/src/main.tsx @@ -6,15 +6,11 @@ import App from './App' import './services/i18n/i18n' import './styles/main.scss' -// Needed for datepicker in - -// uncomment this to see wasted/unnecessary renders of your components -// if (process.env.NODE_ENV !== 'production') { -// const whyDidYouRender = require('@welldone-software/why-did-you-render'); -// whyDidYouRender(React, {include: [/.*/]}); -// } - -initSentry('con') +// We used to call initSentry('con') here. Now we can only init Sentry +// if user accepts it in the cookie banner. So we expose the function +// here to window so that cookie banner can call as needed. +// prettier-ignore +(window as any).initSentry = initSentry ReactDOM.render( diff --git a/apps/redi-talent-pool/src/index.html b/apps/redi-talent-pool/src/index.html index cb48876f7..e50434258 100644 --- a/apps/redi-talent-pool/src/index.html +++ b/apps/redi-talent-pool/src/index.html @@ -7,10 +7,6 @@ name="Description" content="ReDI Talent Pool platform: connecting ReDI jobseekers to jobs at ReDI's partners" /> - ReDI Talent Pool - - - - + + + + - diff --git a/apps/redi-talent-pool/src/main.tsx b/apps/redi-talent-pool/src/main.tsx index d8b829584..c8b25e3fd 100644 --- a/apps/redi-talent-pool/src/main.tsx +++ b/apps/redi-talent-pool/src/main.tsx @@ -5,15 +5,12 @@ import App from './App' // import i18n (needs to be bundled ;)) import './main.scss' import './services/i18n/i18n' -// Needed for datepicker in -// uncomment this to see wasted/unnecessary renders of your components -// if (process.env.NODE_ENV !== 'production') { -// const whyDidYouRender = require('@welldone-software/why-did-you-render'); -// whyDidYouRender(React, {include: [/.*/]}); -// } - -initSentry('tp') +// We used to call initSentry('con') here. Now we can only init Sentry +// if user accepts it in the cookie banner. So we expose the function +// here to window so that cookie banner can call as needed. +// prettier-ignore +(window as any).initSentry = initSentry ReactDOM.render(