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 App from './App';
import LocaleContextProvider from './providers/LocaleContextProvider'; import LocaleContextProvider from './providers/LocaleContextProvider';
import store from './store'; import store from './store';
import { StrictMode } from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';
import { HashRouter as Router } from 'react-router'; import { HashRouter as Router } from 'react-router';
@ -11,15 +12,12 @@ const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render( root.render(
<Provider store={store}> <Provider store={store}>
{/* the waring below appears when using ant menu due to react strict mode. <StrictMode>
* Using <Button> results in "findDOMNode is deprecated in StrictMode" warning <Router>
* Fix not yet available. follow thread: https://github.com/ant-design/ant-design/issues/22493 */} <LocaleContextProvider>
{/*<React.StrictMode>*/} <App />
<Router> </LocaleContextProvider>
<LocaleContextProvider> </Router>
<App /> </StrictMode>
</LocaleContextProvider>
</Router>
{/*</React.StrictMode>*/}
</Provider> </Provider>
); );