mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
1 parent
7366c2d2d3
commit
3bfcd267e0
1 file changed
+11
-1
@@ -18,13 +18,23 @@ import PropTypes from 'prop-types'
|
||||
|
||||
import { StaticRouter, BrowserRouter } from 'react-router-dom'
|
||||
import { Provider } from 'react-redux'
|
||||
|
||||
import root from 'window-or-global';
|
||||
import { defaultWebpackMode } from 'server/utils/constants/defaults';
|
||||
import MuiProvider from 'client/providers/muiProvider'
|
||||
import NotistackProvider from 'client/providers/notistackProvider'
|
||||
import { TranslateProvider } from 'client/components/HOC'
|
||||
|
||||
import Router from 'client/router'
|
||||
|
||||
if(process?.env?.NODE_ENV === 'development'){
|
||||
const webpackHotMiddlewareClient = require("webpack-hot-middleware/client");
|
||||
webpackHotMiddlewareClient.subscribeAll(function (message) {
|
||||
if(message?.action === 'built' && root?.location?.reload){
|
||||
root.location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const App = ({ location, context, store }) => (
|
||||
<MuiProvider>
|
||||
<Provider store={store}>
|
||||
|
||||
Reference in new issue
Block a user