Sha256: d9ca50eeab92b13dc77e7579a9d0e410fd2cf679d6c02976d98bd1cb88e63a87

Contents?: true

Size: 662 Bytes

Versions: 109

Compression:

Stored size: 662 Bytes

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import InsightsTab from './InsightsTab';
import * as actions from './InsightsTabActions';
import reducer from './InsightsTabReducer';
import { selectHits } from './InsightsTabSelectors';

// map state to props
const mapStateToProps = state => ({
  hits: selectHits(state),
});

// map action dispatchers to props
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

// export reducers
export const hostInsightsReducers = { hostInsights: reducer };

// export connected component
export default connect(mapStateToProps, mapDispatchToProps)(InsightsTab);

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.13 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-1.0.13 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-2.0.13 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-0.9.12 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-1.0.12 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-2.0.12 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-0.9.11 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-1.0.11 webpack/InsightsHostDetailsTab/index.js
foreman_rh_cloud-2.0.11 webpack/InsightsHostDetailsTab/index.js