From cd92ed2a9f9a8e099b8b1cefd7aafc6bc05be5f0 Mon Sep 17 00:00:00 2001 From: Peter Sanderson Date: Mon, 29 Apr 2024 17:23:14 +0200 Subject: [PATCH] fix(suite): revert strict mode, it causes some troubles in dev --- packages/suite-desktop-ui/src/Main.tsx | 58 +++++++++++++------------- packages/suite-web/src/Main.tsx | 54 ++++++++++++------------ 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/packages/suite-desktop-ui/src/Main.tsx b/packages/suite-desktop-ui/src/Main.tsx index b5779b573f3..bd89f8a1dce 100644 --- a/packages/suite-desktop-ui/src/Main.tsx +++ b/packages/suite-desktop-ui/src/Main.tsx @@ -1,7 +1,6 @@ import { Provider as ReduxProvider } from 'react-redux'; import { Router as RouterProvider } from 'react-router-dom'; import { HelmetProvider } from 'react-helmet-async'; -import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import { init as initSentry } from '@sentry/electron/renderer'; @@ -43,34 +42,35 @@ const Main = () => { const formattersConfig = useFormattersConfig(); return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - + // Todo: Enable when issues are fixed (ReactTruncate & BumpFee) + // + + + + + + + + + + + + + + + + + + + + + + + + + + + // ); }; diff --git a/packages/suite-web/src/Main.tsx b/packages/suite-web/src/Main.tsx index f5b1191b49c..3edcda628c4 100644 --- a/packages/suite-web/src/Main.tsx +++ b/packages/suite-web/src/Main.tsx @@ -26,7 +26,6 @@ import AppRouter from './support/Router'; import { useCypress } from './support/useCypress'; import { FormatterProvider } from '@suite-common/formatters'; import { HelmetProvider } from 'react-helmet-async'; -import { StrictMode } from 'react'; const Main = () => { useCypress(); @@ -35,32 +34,33 @@ const Main = () => { const formattersConfig = useFormattersConfig(); return ( - - - - - - - - - - - - - - - - - - - - - - - - - - + // Todo: Enable when issues are fixed (ReactTruncate & BumpFee) + // + + + + + + + + + + + + + + + + + + + + + + + + + // ); };