Skip to content

Instantly share code, notes, and snippets.

@desphilboy
Created March 9, 2020 12:37
Show Gist options
  • Save desphilboy/05882520e1f7baad091240ce5d277361 to your computer and use it in GitHub Desktop.
Save desphilboy/05882520e1f7baad091240ce5d277361 to your computer and use it in GitHub Desktop.
import { compose } from 'redux';
import { connect } from 'react-redux';
import withInit from '../../higher-order/with-init';
import withProps from '../../higher-order/with-props';
import {
mapStateToProps,
mapDispatchToProps,
extraProps,
callTypeApi,
callTypeApiNeeded,
callTypeInProgress,
} from './logic.js';
import { ShowDetailsBody, TopSpinner } from './view';
export default compose(
connect(mapStateToProps, mapDispatchToProps),
withProps(extraProps),
withInit(callTypeApi, callTypeApiNeeded, callTypeInProgress, TopSpinner),
)(ShowDetailsBody);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment