SHARE
TWEET

Untitled

a guest Jan 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top