mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-01 19:27:51 +00:00
refactored
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
import React from 'react';
|
||||
import { compose } from 'redux';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { Switch } from 'react-router-dom';
|
||||
|
||||
import 'styles/antd.less';
|
||||
import 'styles/index.scss';
|
||||
|
||||
import injectReducer from 'utils/injectReducer';
|
||||
import injectSaga from 'utils/injectSaga';
|
||||
|
||||
import reducer from './reducer';
|
||||
import saga from './saga';
|
||||
import Dashboard from 'containers/Dashboard';
|
||||
|
||||
import RouteWithLayout from './components/RouteWithLayout';
|
||||
|
||||
@@ -21,12 +16,9 @@ const App = () => (
|
||||
</Helmet>
|
||||
|
||||
<Switch>
|
||||
<RouteWithLayout exact path="/" component={Home} />
|
||||
<RouteWithLayout exact path="/" component={Dashboard} />
|
||||
</Switch>
|
||||
</>
|
||||
);
|
||||
|
||||
const withReducer = injectReducer({ key: 'global', reducer });
|
||||
const withSaga = injectSaga({ key: 'global', saga });
|
||||
|
||||
export default compose(withReducer, withSaga)(App);
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user