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(