chore(style): enable strict mode
All checks were successful
/ build (push) Successful in 5m34s

This commit is contained in:
Varakh 2024-12-11 18:17:51 +01:00
parent f3b6b17768
commit 4a5f229297

View file

@ -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(
<Provider store={store}>
{/* the waring below appears when using ant menu due to react strict mode.
* Using <Button> results in "findDOMNode is deprecated in StrictMode" warning
* Fix not yet available. follow thread: https://github.com/ant-design/ant-design/issues/22493 */}
{/*<React.StrictMode>*/}
<Router>
<LocaleContextProvider>
<App />
</LocaleContextProvider>
</Router>
{/*</React.StrictMode>*/}
<StrictMode>
<Router>
<LocaleContextProvider>
<App />
</LocaleContextProvider>
</Router>
</StrictMode>
</Provider>
);