This commit is contained in:
parent
f3b6b17768
commit
4a5f229297
1 changed files with 8 additions and 10 deletions
|
@ -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>*/}
|
||||
<StrictMode>
|
||||
<Router>
|
||||
<LocaleContextProvider>
|
||||
<App />
|
||||
</LocaleContextProvider>
|
||||
</Router>
|
||||
{/*</React.StrictMode>*/}
|
||||
</StrictMode>
|
||||
</Provider>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue