Sha256: 8ff7b130c26ad240f0cb7fe1151128301f1b1d2218260eaf851242e5e968a00f

Contents?: true

Size: 892 Bytes

Versions: 42

Compression:

Stored size: 892 Bytes

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import * as actions from './InsightsCloudSyncActions';
import { fetchInsights } from './Components/InsightsTable/InsightsTableActions';
import InsightsCloudSync from './InsightsCloudSync';
import insightsCloudSyncReducers from './InsightsCloudSyncReducers';
import {
  selectSearch,
  selectHasToken,
} from './Components/InsightsTable/InsightsTableSelectors';
// map state to props
const mapStateToProps = state => ({
  query: selectSearch(state),
  hasToken: selectHasToken(state),
});

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

// export reducers
export const reducers = insightsCloudSyncReducers;

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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
foreman_rh_cloud-4.0.36 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-3.0.33 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.35 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.35 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.34 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.33 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-3.0.32 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.32 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.32 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.31 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.31 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.30 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.30 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-3.0.29 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.29 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.29 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-3.0.28 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-5.0.28 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-4.0.27 webpack/InsightsCloudSync/index.js
foreman_rh_cloud-3.0.26 webpack/InsightsCloudSync/index.js