From 4a5f2292975119b6e8dd0e707a2f700990f11d8c Mon Sep 17 00:00:00 2001 From: Varakh Date: Wed, 11 Dec 2024 18:17:51 +0100 Subject: [PATCH] chore(style): enable strict mode --- server/web/src/index.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/server/web/src/index.tsx b/server/web/src/index.tsx index edced12..015f58c 100644 --- a/server/web/src/index.tsx +++ b/server/web/src/index.tsx @@ -2,6 +2,7 @@ import './i18n'; import App from './App'; import LocaleContextProvider from './providers/LocaleContextProvider'; import store from './store'; +import { StrictMode } from 'react'; import ReactDOM from 'react-dom/client'; import { Provider } from 'react-redux'; import { HashRouter as Router } from 'react-router'; @@ -11,15 +12,12 @@ const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement) root.render( - {/* the waring below appears when using ant menu due to react strict mode. - * Using