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 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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue