Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import {Component} from 'react';
  2. import aliasesSaga from './saga';
  3. import aliasesReducer from './reducer';
  4. import injectReducer from 'utils/injectReducer';
  5. import injectSaga from 'utils/injectSaga';
  6. import {compose} from 'redux';
  7. import {DAEMON} from 'utils/constants';
  8. import PropTypes from 'prop-types';
  9.  
  10. class AliasesContainer extends Component {
  11. render() {
  12. return this.props.children;
  13. }
  14. }
  15. const withReducer = injectReducer({
  16. key: 'groupAliases',
  17. reducer: aliasesReducer,
  18. });
  19. const withSaga = injectSaga({
  20. key: 'groupAliases',
  21. saga: aliasesSaga,
  22. mode: DAEMON,
  23. });
  24.  
  25. AliasesContainer.propTypes = {
  26. children: PropTypes.object,
  27. };
  28.  
  29. export default compose(withReducer, withSaga)(AliasesContainer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement