diff --git a/client/ReduxContainer.js b/client/ReduxContainer.js index 92ace258..a0c8263e 100644 --- a/client/ReduxContainer.js +++ b/client/ReduxContainer.js @@ -2,10 +2,12 @@ import LoginRedux from './reducer/Login/Login_redux.js' import login from './reducer/Login/login.js' import group from './reducer/group/group.js' import Interface from './reducer/Interface/InterfaceReducer.js' +import news from './reducer/news/news.js' export default { group, login, LoginRedux, - Interface + Interface, + news } diff --git a/client/constants/action-types.js b/client/constants/action-types.js index dd3f4970..0965f35e 100644 --- a/client/constants/action-types.js +++ b/client/constants/action-types.js @@ -16,3 +16,7 @@ export const REGISTER = 'REGISTER'; //header export const LOGIN_TYPE = 'LOGIN_TYPE'; + +// News +export const FETCH_NEWS_DATA = 'FETCH_NEWS_DATA' + diff --git a/client/routes.js b/client/routes.js index 552e9a9b..d2dd9000 100644 --- a/client/routes.js +++ b/client/routes.js @@ -1,6 +1,6 @@ import React from 'react' import { Route, HashRouter } from 'react-router-dom' -import { Home, ProjectGroups, Interface } from './containers/index' +import { Home, ProjectGroups, Interface, News } from './containers/index' import Header from './components/Header/Header' export default () => { @@ -11,6 +11,7 @@ export default () => { + )