From 57e4702c3ada7ea0188449c17c57ac8ea2472431 Mon Sep 17 00:00:00 2001
From: Joe Banks <joe@jb3.dev>
Date: Thu, 11 Jul 2024 02:24:16 +0100
Subject: Disable StrictMode for React

---
 src/index.tsx | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

(limited to 'src/index.tsx')

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();
-- 
cgit v1.2.3

