aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-11 04:14:48 +0100
committerGravatar GitHub <[email protected]>2024-07-11 04:14:48 +0100
commit1d1afff8c0e7a5ee6f39a0d3888d8acd6d459cf7 (patch)
tree7267f41035be6d62c92729577aec98183e25cf39 /src/index.tsx
parentMerge pull request #637 from python-discord/dependabot/npm_and_yarn/sentry/re... (diff)
parentRe-map slugged vote options to human form when upstreaming to form (diff)
Merge pull request #638 from python-discord/jb3/components/vote-field
Vote component
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/index.tsx b/src/index.tsx
index a7fdd2a..a63c9e1 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -62,23 +62,21 @@ const rootDocument = document.getElementById("root");
const root = createRoot(rootDocument!);
root.render(
- <React.StrictMode>
- <Sentry.ErrorBoundary
- fallback={<p>An error has occurred with Python Discord Forms. Please let us know in the Discord server at <a href="https://discord.gg/python">discord.gg/python</a></p>}
- showDialog={true}
- dialogOptions={{
- title: "You've found a bug in PyDis forms!"
- }}
- onError={(err) => {
- if(process.env.NODE_ENV === "development")
- console.log(err);
- }}
- >
- <Provider store={formsStore}>
- <App/>
- </Provider>
- </Sentry.ErrorBoundary>
- </React.StrictMode>
+ <Sentry.ErrorBoundary
+ fallback={<p>An error has occurred with Python Discord Forms. Please let us know in the Discord server at <a href="https://discord.gg/python">discord.gg/python</a></p>}
+ showDialog={true}
+ dialogOptions={{
+ title: "You've found a bug in PyDis forms!"
+ }}
+ onError={(err) => {
+ if(process.env.NODE_ENV === "development")
+ console.log(err);
+ }}
+ >
+ <Provider store={formsStore}>
+ <App/>
+ </Provider>
+ </Sentry.ErrorBoundary>
);
serviceWorker.unregister();